Webpage made with Python Flask framework, Javascript, Mongodb and Apache.
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" } }