0% found this document useful (0 votes)
47 views4 pages

Sample Book of Api

This document describes an API for managing book orders. It includes endpoints for getting a list of books, details of a single book, submitting an order, getting/updating/deleting orders, and authenticating API clients. Key features are retrieving book data, placing/modifying orders, and requiring authentication tokens.

Uploaded by

akshay khandekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views4 pages

Sample Book of Api

This document describes an API for managing book orders. It includes endpoints for getting a list of books, details of a single book, submitting an order, getting/updating/deleting orders, and authenticating API clients. Key features are retrieving book data, placing/modifying orders, and requiring authentication tokens.

Uploaded by

akshay khandekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Simple Boek API

AP..allous.. youte ordes a beok.


API1s.availalble at
https:7/ imple-becks-api.qli4th. me

Endpaints
SETstotus
Retumshestatus of AP

List of Books
GETI books
Retusns istof books
Optiona qu .Paramelers:
type fictio0 o r non-fic hon
init a numbes between I20

Get a Singleboek
GET/books/: bookid
Retoives detailed nformaion about
a loeak.

Suomit Qn Ondor
POST orders
Allows youto Submit ne osdes.
authenhcation
Requises
oedy needs to be in JSON
The Tequest
fos mat andincluela he fotloin1
Poopeties

bookId Integes Requzed


Customes Name - St7inq-
Requyed

Example

POst/odess/ -

Authoni2atien Bearer TovR TOKEN

bock ld": 1, - - - - - -

Customes Name": "John"

he eSpons e oody Co ntain Ahe


-- - - -- - - - - - - - -- - - - - - - - -

a ece oen.

Get an. Drderc


GET raleTs/ osdesld
all e sde ss
Alles ou doie stinq
Requises qulhen ication,

Get all Ondes


GET/Orders
Allow you toiew ol Orders
Requires authenfica ion.
Update an des
PATCHovders/ 0rdesld
updake an olslinq 0sdes.
Req ui aulhenti Hoo. ----- - -

he - - -

Tequest.. bed
- - - .
needs o be in
JSONAomat amd
pdoe belouo ParrpdopertiQs
CustomerName Stein
Cusromer Name Shna
Eoeample
- - - - -- - - - - - - -

aPA1CH omder) PFGMEIPDcuh Wobz

Authomza'o n Bea7 <YoURTOKENE

CusromerName" John'" --- - - - - - - - - -- -

Dale Ord e an
DeLE TE/0sdeTs/! ordesid
- - - - - - -- - -

Delek an eesHn Ordo Re. Quthent


The eques6 body heecd obe ap

Example
DELETE ordess /PFGMEL PDcuh Hobz
CamJy 5

- - -
Authoiaahion:
- -
Beqrer <-
o R TokEN
API Aulhentication
Sule Sul mit....o.. view an ordes
You need oisks APt
your AP
client
POSTapi - clienbl
th .que). lood d to be in
JSON format md inchude he

ollouinqPorpesties
elientame shinq
--- -- -
clientEmail
--- - --- - --- Shi.
Example

cliewt Mame - -- Valemin,


lieut Eame
'cliew-Email" ValenHo eexample.(o

The sponC becg * * * * * * * * *


sll Con teun
acuy to ken,

You might also like