This is a RESTful API created using Node.js. It allows you to perform CRUD operations on [resource name] and is tested using Postman.
- Create, Read, Update, and Delete (CRUD) operations
- JSON response format
- Error handling
- Authentication (if applicable)
- Node.js
- Express.js
- MongoDB (or any other database you are using)
- Postman (for API testing)
Make sure you have Node.js and npm installed. You can download them from Node.js official website.
- Clone the repository:
git clone https://github.com/roystondz/creative-api.git cd creative-api
- Install dependencies:
npm install
- Run:
nodemon index.js
Method | Endpoint | Description |
---|---|---|
GET | /random |
Retrieve random resource |
POST | /jokes |
Create a new resource |
GET | /jokes/:id |
Retrieve a resource by ID |
PUT | /jokes/:id |
Update a resource by ID |
DELETE | /jokes/:id |
Delete a resource by ID |
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a Pull Request.