![]() The server doesn’t change state when a new request is made using the API. WordPress) changes, the server-side application (an app, for example) must still be able to access it via the same simple method. Client applications and server applications must be separate, so they can be developed independently of each other. The URLs used to access resources in the system have to be uniform, consistent, and accessible via a common approach such as GET (more of which shortly). Without REST, two systems wouldn’t be able to understand each other and so send data back and forth.įor an application to be RESTful, it must conform to five principles: Representational State Transfer, or REST, provides standards that web systems can use to interface with each other. What is Representational State Transfer (REST)? The difference with the REST API is that it allows systems outside your WordPress installation itself to interact with WordPress, which is where the REST part comes in. ![]() These can be used by plugin and theme developers to interact with WordPress core and make things happen (like creating shortcodes and adding settings screens to the WordPress admin). WordPress already has multiple APIs, for things like plugins, settings, and shortcodes. These systems don’t need to be completely separate. If you’ve ever added a Google map to your WordPress site, you’ve used Google’s Maps API, which allows your WordPress site to interface with Google Maps. To put it more simply, an API is a set of code that allows one system to interact (or “interface”) with another. If you aren’t familiar with APIs, that may not help very much. “An interface or communication protocol between a client and a server intended to simplify the building of client-side software.” What is an Application Programming Interface (API)?Īn Application Programming Interface, or API, is defined as: Let’s take a look at what each of those means. ![]() REST stands for Representational State Transfer and API stands for Application Programming Interface. You access it using JavaScript, which means it can be used to create interactive websites and apps. The WordPress REST API is an interface that developers can use to access WordPress from outside the WordPress installation itself. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |