e-BookMobile API (v1)

http://localhost:8081

Table of contents

/rmbtests

GET /rmbtests/books

GET /rmbtests/books
Query Parameters
  • author: required (string)

    An author's full name

    Example:

    Mary Roach
  • publicationYear: required (number)

    The year released for the first time in the US

    Example:

    1984
  • rating: (number)

    Average rating (1-5) submitted by users

    Example:

    3.14
  • isbn: required (string - minLength: 10)

    Example:

    0321736079?
  • facets: (array of string)

    facets to return in the collection result set, can be suffixed by a count of facet values to return, for example, patronGroup:10 default to top 5 facet values

Response 200

Body

Media type: application/json

Example:

{
  "data": {
    "id": "SbBGk",
    "title": "Stiff: The Curious Lives of Human Cadavers",
    "description": "aaaaaa",
    "genre": "science",
    "author": "Mary Roach",
    "link": "http://e-bookmobile.com/books/Stiff"
  },
  "success": true,
  "status": 200,
  "metadata": {
    "createdDate": "2017-04-01T23:11:00.000Z",
    "createdByUserId": "dee12548-9cee-45fa-bbae-675c1cc0ce3b"
  }
}

PUT /rmbtests/books

PUT /rmbtests/books
Query Parameters
  • access_token: required (number)

    Token giving you permission to make call

POST /rmbtests/books

POST /rmbtests/books
Body

Media type: application/json

Response 201

Headers
  • Location: required (string)
Body

Media type: application/json

Type: any

Example:

{
  "data": {
    "title": "ABCDEFGHIJKLMNOPQ",
    "description": "string",
    "genre": "ABCDEFGHIJKLMNOPQRSTUVWXYZAB",
    "author": "ABCDE",
    "link": "ABCDEFGHIJ",
    "_id": "ABCDEFGH",
    "datetime": {
      "$date": "ABCD"
    }
  },
  "success": false,
  "status": 165,
  "_id": "ABCDEFGHIJKLMNOPQRSTUVWX",
  "image": "ABCDEFGHIJKLMNOPQRSTUVWX"
}

POST /rmbtests/test

POST /rmbtests/test
Body

Media type: application/json

Type: any

Response 200

Body

Media type: application/json

Type: any

Response 302

Headers
  • Location: required (string)