Inventory API (v2)

http://localhost

Table of contents

ISBN API

API for validation and conversion of ISBN-10 and ISBN-13 numbers

/isbn

GET /isbn/convertTo13

Converts an ISBN code to an ISBN-13 code

GET /isbn/convertTo13
Query Parameters
  • isbn: required (string)

    Example:

    091698477X
  • hyphens: (boolean - default: false)

Response 200

The response body is a json object containing the converted isbn

Body

Media type: application/json

Properties:

  • isbn: required (string)

Example:

{
  "isbn": "9788992783422"
}

Response 400

Bad request, an invalid ISBNs is provided

Body

Media type: text/plain

Type: any

Example:

ISBN value is invalid

GET /isbn/convertTo10

Converts an ISBN-13 code to an ISBN-10 code

GET /isbn/convertTo10
Query Parameters
  • isbn: required (string)

    Example:

    978-1-930110-99-1
  • hyphens: (boolean - default: false)

Response 200

The response body is a json object containing the converted isbn

Body

Media type: application/json

Properties:

  • isbn: required (string)

Example:

{
  "isbn": "1930110995"
}

Response 400

Bad request, an invalid ISBNs is provided

Body

Media type: text/plain

Type: any

Example:

ISBN value is invalid

GET /isbn/validator

Checks the code is a valid ISBN code.

GET /isbn/validator
Query Parameters
  • /^(isbn|isbn10|isbn13)$/: required (string)

Response 200

Returns true if a valid ISBN code, otherwise false

Body

Media type: application/json

Properties:

  • isValid: required (boolean)

Example:

{
  "isValid": true
}

Response 400

Bad request, invalid query parameter is provided

Body

Media type: text/plain

Type: any

Example:

Only one of following query params must be specified: isbn, isbn10, isbn13