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