Skip to content

M2ko/RESTProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTProject

Webpage made with Python Flask framework, Javascript, Mongodb and Apache.

Front Page alt tag

Developer page alt tag

alt tag

Everything comes as JSON from the database. Same urls with different methods do different things. Requests to URL </v2/bar/Amarillo?key=2ad72c> with DELETE method would delete that specific bar, GET would return the bar info and POST would update the bar if you send parameters with it.

For example:

Method GET to

URL: /v2/bar/Boothill/prizes?key=2ad72c

Returns: { "beerprize": "4.0", "jagermaister": "5.5" }

OR

URL: /v2/bar/Apollo?key=2ad72c

Returns: { "_id": { "$oid": "58c15597efd717334c26bb10" }, "lat": "60.168802", "lon": "24.937463", "name": "Apollo", "openhours": "15:00-00:00", "prizes": { "beerprize": "7", "jagermaister": "8.5" } }

About

Webpage with REST API backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published