5 views
What format is used for data exchange in REST?
Asked at
AI answer
REST itself does not define a data format. Usually, the client and server exchange HTTP requests and responses, with the body sent as JSON; XML, plain text, and other formats are also used. The format is usually specified with the Content-Type header, while supported formats are specified with Accept. For example: Content-Type: application/json.
Also asked at Белл интегратор
Similar questions
- What do HTTP requests and responses in REST consist of?
- What is REST, and what does it consist of?
- What is JSON, what data types does it support, and how are dates and times represented?
- What is the purpose of the HTTP Content-Type header?
- What is REST, and why do banking systems often use POST requests instead of GET to retrieve data?