API for Disneyland Hidden Mickeys - Built with Python and PostgreSQL
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
sql
tests
.gitignore
.travis.yml
Pipfile
Pipfile.lock
Procfile
README.md
config.py
manage.py
requirements.txt
run.py

README.md

HMEE API

  1. Introduction
  2. Endpoints
    1. Parks
    2. Lands
    3. Attractions
    4. Mickeys
  3. Installation
  4. Testing

Introduction

API built with Python and PostgreSQL for Hidden Mickeys and Easter Eggs

Endpoints

Base URL: https://hmee-api.herokuapp.com

Parks

DLR parks

  • GET: /parks - a list of all parks
  • GET: /parks/:id - a single park by ID

Lands

DLR lands, organized by park

  • GET: /lands - a list of all lands
  • GET: /parks/:park_id/lands - a list of lands by park
  • GET: /lands:id - a single land by ID

Attractions

DLR attractions - organized by park and land

  • GET: /attractions - a list of all attractions
  • GET: /parks/:park_id/attractions - a list of attractions by park
  • GET: /lands/:land_id/attractions - a list of all attractions by land
  • GET: /attractions/:id - a single attraction by ID

Mickeys

Hidden Mickeys and Easter Eggs. Referred henceforth as "Mickeys"

  • GET: /mickeys - a list of all Mickeys
  • GET: /parks/:park_id/mickeys - list of Mickeys by park
  • GET: /lands/:land_id/mickeys - list of all Mickeys by land
  • GET: /attractions/:attraction_id/mickeys - list of all Mickeys by attraction
  • GET: lands/:land_id/mickeys/none - list of Mickeys by land where attraction_id = null
  • POST: /mickeys - add new row. *NOTE: content-type: application/json REQUIRED
  • PUT: /mickeys/:id - updates single row. *NOTE: content-type: application/json REQUIRED
  • DELETE: /mickeys/:id - deletes single row

Installation

Installation for local development:

Testing

$ python manage.py test