Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The above is just a snippet of the CUSTOMERS_API commuter module, but it showcases all of our API definitions:customer resource APIs:

API SignaturePurpose

API customers.POST

Creates a new customer.
API customers.ID.GETReads a specified customer .
API customers.ID.PUTUpdates a specified customer.
API customers.ID.DELETEDeletes a specified customer.

In each of our APIs there is a call into the LoremIpsum service (a member of the HTTP_Resource_Services module). The purpose of this special service is to enable the new API to produce sample content so the API can be tested immediately. However, we'll assume that our APIs are responding properly to requests so we are now ready to make our APIs function the way we want.

Making APIs Functional