API Hacking RESTful API 1
API Hacking RESTful API 1
example.com/api/users
example.com/users
Collection: a group of
resources such as
/api/profiles/users Acronym CRUD
Stands for Create, Read, Update and
Subcollection:
Delete
refers to collection within a particular
resource Create a process of making new
req. accomplished through POST
/api/users/{user_id}/settings
method
RESTful API may be different. It may have different method beyond CRUD It’s our
set of authentication requirement, subdomain instead of Endpoint different rate-limit
requirement
An RestAPI GET req. used to find out how many bedsheet are in store inventory
2. Content-type
used to indicate the type of media being transferred these diff from Accept, which
states the media type you want to receive.
application/json
application/xml
application/x-www-urlencoded
X-(anything) headers are known as middleware headers. They are fairly common
outside API req. as well.
There are many but you get idea x-(anything) middleware headers can provide a lot
of useful information to API consumers and hackers alike