Skip to content

nareshh74/weather_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

weather_service

system dependencies - python 3.7, git, virtualenv

API Setup

  1. git clone https://github.com/nareshh74/weather_service.git
  2. virtualenv venv --python=/usr/bin/python3
  3. source venv/bin/activate
  4. pip3 install -r requirements.txt
  5. place .env file in root folder
  6. python3 manage.py runserver

Endpoint documentation

  1. Login API ENDPOINT POST ~/auth/login/ JSON - mandatory { "username": , "password": }
  2. Logout API ENDPOINT POST ~/auth/logout/ HEADER - mandatory Authorization - Bearer
  3. Query API ENDPOINT GET ~/weather/ HEADER - mandatory Authorization - Bearer QUERY PARAMS - optional - works like limit offset start - end -
  4. Email API ENDPOINT GET ~/weather/sendEmail HEADER - mandatory Authorization - Bearer JSON - mandatory { "receiverEmailList": <array type - list of emails> }

Please feel free to play with endpoints to know about expected responses.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages