2023-02-23 20:11:31 +01:00
2023-02-22 20:39:46 +01:00
2023-02-23 20:11:31 +01:00

INSTRUCTIONS

QA the the following APIs provide in the postman collection QA.postman_collection.json

  • List Books
  • Get A Book
  • Create Book
  • Update Book
  • Delete Book
  • Create Author

If Api requires authentication, Call the Authenticate API to get the token. Then set the Authorization header (bearer token) Authorization Bearer

*** Report all issues found ***

BASE : https://mkdlabs.com

Credential

APIS

Authenticate

POST /v2/api/lambda/login

Authenticates a user and returns the token which expires in an hour. Required/Mandatory Fields
email: 'required|string' password: 'required|string' role: 'required'

List Books

GET  /v2/api/custom/qa/books

List all books

Get A Book

 GET  /v2/api/custom/qa/books/:id

Get a book where id is :id

Create Book

 POST /v2/api/custom/qa/books

Creates a new book,

  • Bearer authentication required, role - admin

Required/Mandatory Body name: 'required|string', publisher: 'required|string', cost_price: 'required'

Update Book

 PUT /v2/api/custom/qa/books/:id

Updates book where id is :id,

  • Bearer authentication required, role - admin

Body name: 'sometimes|string', publisher: 'sometimes|string', cost_price: 'sometimes', selling_price: 'sometimes', author_id: 'sometimes', title_id: 'sometimes'

Delete Book

DELETE /v2/api/custom/qa/books/:id

Deletes book where id is :id,

  • Bearer authentication required, role - admin

Create Author

 POST /v2/api/custom/qa/authors

Creates a new author,

  • Bearer authentication required, role - admin

Required/Mandatory body name: 'required|string', age: 'required|number',

S
Description
No description provided
Readme 25 KiB