/api-workshop

API and HTTP basics workshop.

Primary LanguagePython

API Workshop

Hello 👋 Welcome to API Workshop. This is a very simple repository containing the basics of APIs, some theory, and exercises.

Go through API_fundamentals_workshop.pdf Presentation

Exercises:

  1. Run pip install -r requirements.txt

  2. Open code/random_number_fact.py, analize and run the file.

  3. Open code/guess_nationality.py, analize and run the file.

  4. Open code/display_response_object_attributes.py, analize and run the file.

  5. Create a new file under code/ with the name you wish.

  6. Choose one API from HERE and try make a GET request to that API using requests library

7 Now try to create a functionality using the response object of the GET request, use guess_nationality.py as example.

  1. Use Git to commit your file and push it to the repo.