Skip to content

Instantly share code, notes, and snippets.

@WilfredAlmeida
Last active October 29, 2022 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WilfredAlmeida/df7af565a7a9febdcd58ee6bc086839d to your computer and use it in GitHub Desktop.
Save WilfredAlmeida/df7af565a7a9febdcd58ee6bc086839d to your computer and use it in GitHub Desktop.
API 101 with Postman Session Resources

API 101 with Postman - Wilfred Almeida

Signup on postman.com

cURL Commands

  • Weather API
    curl --location --request GET 'https://api.openweathermap.org/data/2.5/weather?q=mumbai&units=metric&appid=8cbce2bf9c96ba7df25eb3bdcd9c5e87'

  • Duck API curl --location --request GET 'https://random-d.uk/api/randomimg'

Postman Collection

API Endpoints

  • Weather API - GET Request https://api.openweathermap.org/data/2.5/weather?q=mumbai&units=metric&appid=8cbce2bf9c96ba7df25eb3bdcd9c5e87

  • Joke API - GET Request https://joke.deno.dev

  • Duck API - GET Request https://random-d.uk/api/randomimg

  • Postman Jokes API - POST Request https://postman-student.herokuapp.com/joke/

    Post Request Body

    • Add Joke
      {
      "id": "1234564",
      "author": "Wilfred",
      "joke": "Something Funny"
      }
      
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment