Skip to content
This repository has been archived by the owner on Jan 3, 2022. It is now read-only.

adwojak/GeoLocalizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoLocalizer

How to use

  • Needed python3.8

  • chmod +x createapp.sh

  • ./createapp.sh

  • Add yours Ipstack and django private keys to geolocalizer/.env

  • python manage.py runserver

  • In other tab: python initialfill.py

Endpoints:

  • /register/
    • POST - Register. Fields: username, password
    • PUT / PATCH - Change password. Access token required. Fields: username, password. Id required (/register//)
  • /delete-user/
    • DELETE - Delete user. Only access token required.
  • /token/
    • POST - Generate JWT token. Fields: username, password
  • /token/refresh/
    • POST - Refresh JWT access token. Refresh token required.
  • /fetch-address/
    • GET - Display short geolocations list. Only access token required.
    • POST - Fetch Ipstack. Access token required. Fields: address
  • /geolocations/
    • GET - Display full geolocations list. Only access token required.
    • POST - Manually add geolocation entry. Access token required. Fields: same as single entry from GET
    • PUT / PATCH - Edit single geolocation entry. Access token required. Fields: any from single GET entry. Id required(/geolocations//)
    • DELETE - Delete single geolocation entry. Access token required. Id required(/geolocations//)
  • /locations/
    • GET - Display full locations list. Only access token required.
    • PUT / PATCH - Edit single location entry. Access token required. Fields: any from single GET entry. Id required(/locations//)
  • /languages/
    • GET - Display full languages list. Only access token required.
    • PUT / PATCH - Edit single language entry. Access token required. Fields: any from single GET entry. Id required(/languages//)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published