/Mobius

Website for a theatre, art, music festival // Final assignment of PoliMi Hypermedia applications course (HYP) 2017-2018

Primary LanguageJavaScript

General information about the team and the web application

Description of the REST API

  • /events?date=isostring&type=type&fields=field1,fieldn (date = isostring representation of date, type = type of events[theatre, music, dance, side], fields = comma-delimited names of columns to return) - return all the events matching the provided parameters (if null returns all the events)

  • /events/:id?fields=field1,fieldn (:id = identifier of event in the database, fields = fields to be returned [if empty return the default ones]) - return the details of the requested event

  • /artists/?fields=field1,fieldn&sort=asc (fields = comma-delimited named of columns to return, sort = sorting strategy [asc=ascending, desc=descending]) - return all the artists in alphabetical order

  • /artists/:id?fields=field1,fieldn (id = identifier of artist in database, fields = comma-delimited names of columns to return) - Return the details of the requested artist

  • /dates?sort=asc (sort = sorting strategy [asc=ascending, desc=descending]) - get all the dates in which events are scheduled

  • /info?fields=field1,fieldn (fields = comma-delimited names of info fields to return) - get information about the festival, contacts of the organization and list of all the sponsors

  • /news?fields=field1,fieldn (fields = comma-delimited named of columns to return) - get all the news of the festival

  • /locations?fields=field1,fieldn (fields = comma-delimited named of columns to return) - get all the locations in which events are held

  • /bookings - (POST) Create a new booking for the specified user and event

  • /requests - (POST) Create a new information request for the specified user