4. Apache Tomcat* -Apache Tomcat* -
Servlet** engineServlet** engine
*Apache Tomcat – a Java HTTP web server environment.
**Servlet – a Java program that extends the capabilities of a server.
6. 04/07/18 Igor Khokhriakov & Olga Merkulova 6
● Uses structured requests:
– http://{host}/{app}/{api}/{version}/{collection}
e.g. http://localhost:8080/my-app/users
– http://{host}/{app}/{api}/{version}/{collection}/{item}
e.g. http://localhost:8080/my-app/users/123
– http://{host}/{app}/{api}/{version}/{collection}/{item}/{sub-collection}
● Adds semantic to HTTP methods:
– GET → get resource
– POST → create new resource
– PUT → update resource
– DELETE → remove resource
7. JAX-RS –JAX-RS –
Java framework* forJava framework* for
server/client side RESTserver/client side REST
implementationimplementation
9. 04/07/18 Igor Khokhriakov & Olga Merkulova 9
● Tango REST API – RESTful view on Tango
Controls
http://{host}/{app}/{api}/{version}/{collection}/{item}/{sub-collection}
→
http://host/tango/rest/rc4/hosts/tango_host/10000/devices
Tango REST API is just a
SPECIFICATION!!!