Complete these steps to prepare for the PawFinder API tutorials. Estimated preparation ~20 minutes.
The following are tutorial prerequisites. Open the links in separate browser tabs before installing any software.
http://localhost host name isn’t compatible with
the web-version of Postman.Tip: while using a fork of the repository, create a working branch in which to complete the tutorials. Create a new branch for each tutorial to prevent a mistake in one from affecting any work in another.
Create and checkout a test branch of the fork of the PawFinder Service repository.
GitHub repository workspace is the directory that contains the fork of
the pawfinder-service repository.
cd <GitHub repository workspace>
ls
# (see the pawfinder-service directory in the list)
cd pawfinder-service
git checkout -b tutorial-test
cd api
json-server -w pawfinder-db-source.json
If the installation succeeded, the service should start
and display the URL of the service: http://localhost:3000.
Make a test call to the service:
curl http://localhost:3000/pets
If the service is running correctly it retrieves a list of pets, for example:
[
{
"name": "Luna",
"species": "cat",
"breed": "Domestic Shorthair",
"age_months": 18,
"gender": "female",
"size": "small",
"temperament": "playful, affectionate",
"medical": {
"spayed_neutered": true,
"vaccinations": ["fvrcp", "rabies"]
},
"description": "Luna is a playful tabby who loves
interactive toys and sunny windows.",
"shelter_id": 1,
"status": "available",
"intake_date": "2025-09-01",
"id": 1
},
{
"name": "Max",
"species": "dog",
"breed": "Golden Retriever Mix",
"age_months": 36,
"gender": "male",
"size": "large",
"temperament": "energetic, loyal",
"medical": {
"spayed_neutered": true,
"vaccinations": ["rabies", "dhpp", "leptospirosis"]
},
"description": "Max is an active dog who needs regular
exercise and responds well to commands.",
"shelter_id": 2,
"status": "available",
"intake_date": "2025-07-20",
"id": 2
},
...
When encountering errors in any procedure steps, investigate, and correct the error before moving forward. Common situations that cause errors:
If the service correctly retrieves a list of pet profiles, move on to the Quickstart.