REST - Document - Rating
REST-Interface
Is document marked as helpful by current account
URLGET <application-url>/api/document/<documentId>/version/<documentLanguageVersionId>/rating
Path parameter
- documentId
- documentLanguageVersionId
Produces
- 200 OK
- 404 NOT FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/document/2/version/5/rating
Mark document as helpful (for current account)
URLPUT <application-url>/api/document/<documentId>/version/<documentLanguageVersionId>/rating
Path parameter
- documentId
- documentLanguageVersionId
Produces
- 200 OK
- 409 CONFLICT
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/document/2/version/5/rating
Unmark document as helpful (for current account)
URLDELETE <application-url>/api/document/<documentId>/version/<documentLanguageVersionId>/rating
Path parameter
- documentId
- documentLanguageVersionId
Produces
- 200 OK
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleDELETE http://localhost:8080/mtr-backend/api/document/2/version/5/rating