7
7
700ghz2019-02-20 12:18:41
JavaScript
700ghz, 2019-02-20 12:18:41

GetBook endpoint according to REST API?

You need to make an endpoint 'get a book by id or uuid' (books seem to have two identifiers).
What will the address look like according to the REST API?
Get /books/:idOrUuid (Is it possible at all?)
Or is it only possible?
Get /books [body params: bookId, bookUuid]
PS the customer asks :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
�
ⓒⓢⓢ, 2019-02-20
@700ghz

according to Rest api you can
Or like this:
Get /books/id/:id
Get /books/article/:article
Or like this:
Get /books/id_or_article - number\string
Or like this:
Get /books/:id/:article
Rest api does not put restrictions on names

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question