REST

REST is a standard for web services, designed to accept requests and parameters and return a representation of that data, usually in a JSON format but sometimes in XML or HTML format. APIs that use REST architecture must meet these architectural constraints:

  • Client-server interactions
  • Statelessness
  • Cacheablitity
  • Uniform interface 
  • Layered system

The client (a web browser or a remote computer) will send a request to a server at a designated URL endpoint. The request can include parameters that limit the data objects returned, much like conditionals in an SQL statement. It is stateless, meaning that each request must contain the request parameters and cannot refer to the results of another request. The data returned must be explicitly ...

Get Mastering Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.