Skip to content

oer-bookr-6-24-2019/oer-bookr-BE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oer-bookr-BackEnd

Create user

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)

Login

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"
}

Books

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"
}

Reviews

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages