Getting started
About the API
- HTTP method: Local service at
http://localhost:3000is accessible at your configured{base_url} - Data format: JSON for all requests and responses
- Server: This API runs on your local machine or your chosen server environment
- Authentication: See Authentication for more information
Prerequisites
To use the Sciatica Sisters API, you need:
- A GitHub account
- Git
- node.js
- json-server
- curl or Postman desktop app
Set up the API
- Fork the Sciatica Sisters API repository
- Clone your fork to your local machine
-
Open your terminal and navigate to the repository:
cd SciaticaSisters-API/api -
Start the JSON server:
json-server -w sciatica-sisters-db-source.json - You should see the server running at
http://localhost:3000
Curl testing
Open a new terminal window and run:
curl {base_url}/users
For local development, use:
curl http://localhost:3000/users
You should see a list of users in JSON format.
Postman testing
- Open the Postman desktop app
- Create a new request
- Set method to
GET - Enter URL:
{base_url}/usersorhttp://localhost:3000/usersfor local testing - Click Send
You should see a list of users in the response.