You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Most developers already know that API means Application Programming Interface. There are many articles on the web that provide various levels of commentary on the subject, but in simple terms an API is a set of definitions, protocols, and tools for building software.

In the context of the SRP HTTP Framework, we are working with web APIs. At a high-level, web APIs are composed of the following:

  • A URL (or endpoint) that identifies a resource on a server. (Required)
  • The HTTP Method that informs the server what action is to be taken by the server. (Required)
  • A payload body that the server is expected to act upon. (Required for certain HTTP Methods like POST, PUT, and PATCH)
  • HTTP Request header(s) and corresponding value(s) to provide additional meta data to the server. (Optional)
  • No labels