Glossary

REST API

REST API or Representational State Transfer is a programming interface for web-based applications. How and why is it frequently used? We'll explain it to you!
Ein offener Laptop, auf dem eine Übersicht und Grafiken zu Bestellungen und Umsätzen im FrachtPilot geöffnet sind
öffnet größere Ansicht, auf dem im FrachtPilot der Lagerbestand mit allen wichtigen Informationen geöffnet ist

What is a REST API?

REST API Is a type of programming interfaces and stands for Representational State Transfer. She is a Client-server architecture style, which is about HTTP, i.e. Hypertext Transfer Protocol, communicates. The interface therefore communicates using protocols with a server. HTTP communication comes in the context of web services to applicationbecause they also work with the Internet standard Hypertext Transfer Protocol.

What characteristics make an API RESTful?

  1. Stateless: She is stateless, which means that no data cached become, but every Request contains all informationthat are necessary for the data. The term REST represents the transition from the current state to the next, which takes place as a result of the data transfer that represents the next state. A prerequisite for this is the client-server architecture, in which the server provides a service that the client can query. Because the data is stored on the server and is only packagewise about inquiries requisitioned. Statelessness is an advantage because the Scalable applications are.
  2. cacheability: The server's responses can be cached to improve performance. Cachability ensures that Answers cached can be. For this purpose, the respective information is specified that it should be cached. If the request is sent again, you can click on the Response retrieved from the cache Become what the API more powerful does.
  3. layered architecture: The layered architecture allows security layers to be interposed.

3 components of a REST API

A REST API includes a servers, a Client and resources. The client is a program that allows users to Start communication. Communication takes place with the server that Resources such as images or documents stores, which is via the API be requested.

How does a REST API work?

With the ordersn READ, DELETE, PUT, GET and POST The client queries specific resources from the server. He can also use it to obtain information or add resources. Resources are data, such as images or documents, that can be read, deleted, or modified. Die Data is changed in the process about representations. This means that the client sends representations to the server, which should delete or add data about them, for example.

What does the requirement structure look like?

The client makes a request, the server returns an answer with encrypted data, using a resource. Die requirement structure comprises the HTTP method such as POST to add, plus a terminus Like the URI or URL, one Header and the bodysuit.

Die URL contains the complete web address. Resources are also addressed via URLs. Such Uniform Resource Locations are subtypes of Uniform Resource Identifiers (URI) and specify the web address of pages. That means they give the site on, Where to find them.

The Header contains the authentication data from client and server, i.e. the API key, the name and the IP addresses. The bodysuit Then contains the datathat you want to add with the POST command. The API key, or API key Is a numeric string, which must also be specified so that the server confirms access to the resources. It is provided by the API operator.

Browse: