
API Documentation
Installation
Install my-project with npm
npm install my-project
cd my-project
Deployment
To deploy this project run
npm run deploy
Running Tests
To run tests, run the following command
npm run test
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
API_KEY
ANOTHER_API_KEY
API Reference
Get all items
GET /api/items
| Parameter | Type | Description |
|---|---|---|
api_key |
string |
Required. Your API key |
Get item
GET /api/items/${id}
| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of item to fetch |
add(num1, num2)
Takes two numbers and returns the sum.
Usage/Examples
import Component from 'my-project'
function App() {
return <Component />
}