Skip to content

carlbennettnz/json-api-example

This branch is 5 commits behind ethanresnick/json-api-example:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

279c57d · Aug 26, 2015

History

23 Commits
Aug 26, 2015
Mar 11, 2015
Aug 26, 2015
Jun 2, 2015

Repository files navigation

json-api-example

An example API created with my JSON-API library (http://github.com/ethanresnick/json-api)

Try it out

  1. Clone the repo
  2. Run npm install
  3. Ensure MongoDB is running and listening on the default port
  4. Run node src/index.js
  5. Try out the following (for example):
  • GET http://localhost:3000/ to view the auto-generated documentation
  • GET http://localhost:3000/people to view the people collection
  • POST http://localhost:3000/schools to add a school
  • GET http://localhost:3000/organizations to view the organizations collection, which includes all schools too
  • GET http://localhost:3000/people/{id} to view a person, after it's been created
  • GET, POST, or PATCH http://localhost:3000/organizations/{id}/relationships/liaisons to view or modify an organization's liaisons relationship

About

An example API created with my JSON-API library (http://github.com/ethanresnick/json-api)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%