Skip to content

julienCozo/mpeak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MountainPeak API

This guide assumes that you are using a linux system. The MountainPeak is based on a FastAPI, postgreSql python stack.

Build and run the application

  1. Make sure Docker and docker-compose is installed on your system

  2. Download this repository.

  3.  git clone https://github.com/julienCozo/mpeak.git && cd mpeak
    
  4. On the command line you can build the image and start the container:

     docker-compose up --build
    
  5. Open http://localhost:8000/ in your browser. You should be greated by a welcome message

Playing with API

FastAPI include powerfull tool to test API. Let use Swagger UI which is available at http://localhost:8000/docs/

Here a list of implemented routes with examples

List all peak with classic pagination implemented (skip and limit)

List peak in a bouncing box with query params max_lat min_lat max_lon min_lon

Read a peak (GET)

Update a peak (PUT)

Delete a Peak (DELETE)

Create a peak (POST)

Peak schema is { "name": "string", "lat": 0, "lon": 0, "altitude": 0, "id": 0 }

Create schema is { "name": "string", "lat": 0, "lon": 0, "altitude": 0 }

About

Api to handle moutain peak

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published