You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add info about creator and requested / offered flag
Enroll to some card
Unenroll to some card
Show card's rating according to conducted sessions
Functionality
GET/card/{id}
You can get info about CV Cards and Request cards. Depending on card's type fields rating, countVoted will be shown only for the CV Card. Also, CV Cards and Request cards have different last field: either requested or offered.
You will get a response only if this card is has hidden=false property, so everyone can see it.
You will get a response if it is your card, no matter of hidden property's value.
POST/enroll
In case you as a tutor want to respond on a student's Request card.
In case you as a student wants to request a tutor’s CV card.
The pair (enrollerId, cardId) must be unique. So, you can't enroll to the same card several times.
You can't enroll to your own cards.
DELETE/unenroll/{id}
Delete your enrollment to some card specifying a card id as the path variable. You can unenroll only from cards to which you enrolled.