Skip to content

A mock API for use with the Hustle relations homework question

License

Notifications You must be signed in to change notification settings

Hustle/project-mock-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hustle Relations Mock API

Running the API

Install yarn (https://yarnpkg.com/lang/en/docs/install) or npm and then run

yarn install
yarn start

Accessing the api

After running the command above you can then make a get request to localhost:3000/people for an index of all the people. Or localhost:3000/people/${peopleId} for an individual.

You can also access localhost:3000/me for a good starting point person to open with.

For the curious:

This is built with json-server which exposes some extra endpoints that you can play around with as well.

About

A mock API for use with the Hustle relations homework question

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published