"Representational State Transfer"
people often mean „RESTful HTTP“...
...when they say "REST"
URI = a Resources´ path and name, no Operation names!
In contrast to the RPC Styles!
Resources (URIs), http://api.devopenspace.de/users/1234
Representations and JSON, PDF, XML, HTML, ...
Operations on them GET, PUT, POST, DELETE, ...
Code | What it means |
---|---|
1xx |
information |
2xx | everything´s good |
3xx | go somewhere else |
4xx | the others screwed up |
5xx | we messed up |
Easiest tool to transfer data via REST!
...and it´s available nearly everywhere
-i include protocol headers in the output (H/F)
-k Ignore insecure certs
-X the HTTP method
-H add headers
Best REST GUI client, Chrome based
JSON-2-Java: User user = mapper.readValue(new File("user.json"), User.class);
Java-2-JSON: String json = mapper.writeValueAsString(user);