/gotham-api

Simple API to be used in "Node Sorocaba - Meetup #1".

Primary LanguageJavaScript

gotham-api

Simple API to be used in "Node Sorocaba - Meetup #1".

Running project

You need to have installed Node.js

Install dependencies

To install dependencies enter project folder and run following command:

npm install

Run server

npm start

Make Requests

Listing all characters

http GET http://localhost:5000/characters

Using Heroku

Heroku

GET/POST characters

https://secure-thicket-39526.herokuapp.com/characters

JSON example for POST

{
    "name": "James Gordon",
    "ocupation": "Police Commissioner",
    "quote": "Because he's not our hero.",
    "firstAppearance": 1938
}