REST API Flashcards
1
Q
RESPONSE BODY
A
The response body consists of the resource data requested by the client. In our example, we requested the book’s data, and the response body consists of the different books present in the database along with their information.
As can be seen, the book list comes in response along with different book properties like its author, description, isbn, title, etc. Additionally, the message body helps the user with more information on the response, be it a valid response with data, some error in response, or the need for additional data from the client.