/Event-Planner--API-Server-

An API backend hosted on Google App Engine, to be used with the Event Planner mobile app.

Primary LanguagePython

Event Planner (API Server)

A simple API backend hosted on Google App Engine, to be used with the Event Planner mobile app.

Reference

POST /event/
Creates a new event using the provided parameters.

Parameters

name, string (required)
date, string
location, string
host, string
notes, string

GET /event/
Returns data from all events.

GET /event/{event_id}
Returns data from the event whose id is provided.

PATCH /event/{event_id}
Edits any editable parameters of event whose id is provided.

Parameters

name, string
date, string
location, string
host, string
notes, string

DELETE /event/{event_id}
Deletes the event whose id is provided. If the event was assigned to any venues, it is removed from the event_list of those venues.

POST /venue/
Creates a new venue using the provided parameters.

Parameters

name, string (required)
address, string
phone_num, int
max_occupancy, int
description, string

GET /venue/
Returns data from all venues.

GET /venue/{venue_id}
Returns data from the venue whose id is provided.

PATCH /venue/{venue_id}
Edits any editable parameters of venue whose id is provided.

Parameters

name, string
address, string
phone_num, int
max_occupancy, int
description, string

DELETE /venue/{venue_id}
Deletes the venue whose id was provided. This does NOT delete events associated with this venue.

PUT /venue/{venue_id}/event
If not already in Venue.event_list for the venue whose id is provided, the event id provided in the request body will be added to Venue.event_list for this venue.

Parameters

event_id, string (required)

GET /venue/{venue_id}/event
Returns an array of events for all events whose keys are in Venue.event_list for the venue whose id is provided.

DELETE /venue/{venue_id}/event/{event_id}
If the venue whose id is provided has in their Venue.event_list the id of the event whose id is provided, the event is removed from the venue’s event_list.