Skip to content

charlesdlrsa/people_doc_tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

API Server

Requirements :

  • python 3.6
  • django
  • Django Rest Framework

To be able to request the api, you have to run the server :

$ cd django_api
$ python manage.py migrate
$ python manage.py runserver

You can now make the different requests by requesting these endpoints with the 'http://localhost:8000' prefix :

  • create a restaurant : POST /restaurants with the body {'name': 'Burger1'}
  • delete a restaurant : DELETE /restaurants/<name>
  • get all the restaurants : GET /restaurants
  • get a random restaurant : GET /restaurants/random

You can run the different tests with the command:

$ python manage.py test restaurants

API consumer

To know if it's going to rain today in a city, just launch this script and follow the instructions:

$ python script_meteo.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages