rest
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rest [2018/02/28 21:01] – skipidar | rest [2023/06/06 09:53] (current) – skipidar | ||
---|---|---|---|
Line 6: | Line 6: | ||
Es werden Methoden übergeben: | Es werden Methoden übergeben: | ||
- | | |GET | POST | PUT | DELETE| PATCH| | + | | | GET | POST | PUT | DELETE| PATCH| |
- | |Safe|x| | | | | | + | |Safe | x | | |
- | |Idempotent|x|x| |x| | | + | |Idempotent| |
Line 14: | Line 14: | ||
A good describtion is here: \\ | A good describtion is here: \\ | ||
- | http://www.se.uni-hannover.de/pub/ | + | https://restfulapi.net/idempotent-rest-apis/ |
Line 61: | Line 61: | ||
</ | </ | ||
+ | |||
+ | |||
+ | === Glossary === | ||
+ | | Compound Documents | < | ||
+ | To reduce the number of HTTP requests, servers MAY allow responses that include related resources along with the requested primary resources. Such responses are called “compound documents”. | ||
+ | https:// | ||
+ | </ | ||
+ | |Sparse Fieldsets| A client MAY request that an endpoint return only specific fields in the response on a per-type basis by including a fields[TYPE] parameter. < | ||
Line 227: | Line 235: | ||
* HAL Introduction: | * HAL Introduction: | ||
- | * HAL browser: http://haltalk.herokuapp.com/ | + | * HAL browser: http://api.m.ox.ac.uk/browser/#/ |
===== REST API Example ===== | ===== REST API Example ===== | ||
Line 334: | Line 342: | ||
</ | </ | ||
+ | |||
+ | |||
+ | == CURIES == | ||
+ | Cut URI - an approach to reduce the long URLs | ||
+ | |||
+ | < | ||
+ | GET http: // | ||
+ | data{ | ||
+ | id: 1, | ||
+ | type: characters, | ||
+ | attributes{ | ||
+ | name: " | ||
+ | size: " | ||
+ | race: " | ||
+ | }, | ||
+ | curies{ | ||
+ | { | ||
+ | name: " | ||
+ | href: " | ||
+ | }, | ||
+ | links{ | ||
+ | self: " | ||
+ | prev: " | ||
+ | next: " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ |
rest.1519851714.txt.gz · Last modified: (external edit)