This is a sample REST API implementation using Express JS and MySQL. The code in the main branch is working with MySQL database.
- Clone the repository
- Create a .env file in the root directory with the template given in the .env-template file. The values should specify the host, database, and user and password to connect to your database.
- npm install
- npm start
This is a sample documentation. At the time when you check this, the server might not be available to use the endpoint.
BaseURL: https://your-website-address.com/
| Method | Endpoint | Parameters | Description |
|---|---|---|---|
| GET | api/resources | Find the list of all records in the endpoint |