Endpoint: https://sgs-lambda-bookr.herokuapp.com/createnewuser
Body (application/Json)
{
"username" : "yourUsername",
"password" : "yourPassword"
}
Returns
{
"access_token": "ba94fbf1-4dd6-41c9-9744-6b9b17829641",
"token_type": "bearer",
"refresh_token": "6c8a8105-3a4a-4296-9f1a-65997fd97aca",
"expires_in": 3599,
"scope": "read write trust"
}
https://sgs-lambda-bookr.herokuapp.com/users/users to list all users (must be admin)
Endpoint: https://sgs-lambda-bookr.herokuapp.com/loginuser
Body (application/Json)
{
"username" : "yourUsername",
"password" : "yourPassword"
}
Returns:
{
"access_token": "ff9803b8-6a3d-4e64-9321-4f34cd84f924",
"token_type": "bearer",
"refresh_token": "9fe8bf45-1f3e-405c-9a35-a1d401f7968a",
"expires_in": 3599,
"scope": "read write trust"
}
Documentation: https://sgs-lambda-bookr.herokuapp.com/swagger-ui.html#/books-controller
books/add Example:
{
"author": "string",
"booktitle": "string",
"imageurl": "string",
"license": "string",
"publisher": "string",
"url": "string"
}
Documentation: https://sgs-lambda-bookr.herokuapp.com/swagger-ui.html#/reviews-controller
reviews/add/bybookid/{bookid} Example:
{
"rating": 4,
"review": "string",
"user": "string"
}
reviews/update/byreview/{reviewid} Example:
{
"rating": 3,
"review": "changedString",
"user": "string"*
}
*required