10.3. Testing our Simple Custom API with Postman

Please watch the video to learn how to use Postman with an API.

Contacts API details

The base URL: https://apis.sakibnm.work:8888/contacts/text/

The endpoints:

  • Get all contacts: getall

    • Method: GET

    • Query Params: none

  • Get the details of a particular contact: details

    • Method: GET

    • Query Params: name

  • Add a contact: add

    • Method: POST

    • Body Params: name, email, phone.

  • Delete a particular contact: delete

    • Method: GET

    • Query Params: name

Last updated

Was this helpful?