Chapter 7
RESTful API Requests and
Responses
This chapter covers the following topics:
RESTful API Fundamentals: This section covers the basics of
RESTful APIs and details operations such as GET, POST, PUT, and
DELETE. Other topics include REST headers and data formats such as
XML, JSON, and YAML.
REST Constraints: This section covers the six architectural
constraints of REST in detail.
REST Tools: This section covers sequence diagrams and tools such as
Postman, curl, HTTPie, and the Python Requests library that are used
to make basic REST calls.
Application programming interfaces (APIs) are the
foundation of the new generation of software,
including networking, cloud, mobile, and Internet of
Things (IoT) software. APIs connect pieces of software
together, “gluing” together any required information
components around a system and enabling two pieces
of software to communicate with each other.
REST, which stands for Representational State
Transfer, refers to a particular style of API building.
Most modern services and networking products today
rely on REST for their APIs simply because REST is
based on HTTP (which happens to be the protocol that
powers nearly all Internet connections). REST is
lightweight, flexible, and scalable, and its popularity
has been growing.
“DO I KNOW THIS ALREADY?” QUIZ