Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 623 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 623 Bytes

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.