@Author : https://github.com/techiemanish
This is RESTful API with CRUD operation:
Techonology used: MonogoDB, Express.js, Node.js, AWS
API Endpoint: /employees
Project Live Link: https://replit.com/@techiemanish/restful-api-crud
Application Source Code: https://github.com/techiemanish/restful-api-crud
Docker image: https://hub.docker.com/r/techiemanish/restful-api-crud
Container Port: 3000
docker pull techiemanish/restful-api-crud
docker run -it -p 5000:3000 --name myapp techiemanish/restful-api-crud
Before sending any request to the api, first click on the above link and run the project on live envoirnment, then feel free to test this RESTful API.
- For Get request to API: [Request type = GET]
https://restful-api-crud.techiemanish.repl.co/employees
OR
To find the particular employee with id:
https://restful-api-crud.techiemanish.repl.co/employees/id
2. For Post request to API: [Request type = POST]
https://restful-api-crud.techiemanish.repl.co/employees
{
employee_id : "1100",
employee_name : "Manish Tiwari",
employee_salary : "750000",
employee_age : "22"
}
ORUse the frontend and submit the Form
- For PUT request to API: [Request type = PUT]
https://restful-api-crud.techiemanish.repl.co/employees/id
Body for the request while sending the request: For example:
{
employee_id : "1100",
employee_name : "Manish Tiwari",
employee_salary : "750000",
employee_age : "22"
}
- For Delete request to API: [Request type = Delete]
https://restful-api-crud.techiemanish.repl.co/employees/id