Skip to content

lavsharmaa/nodejs-employee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Nodejs

Available end-points

GET /employee

Gets all the available employee (2 sample employee).

GET /employee/:id

Obtains an employee given its id.

POST /employee

Creates an employee.

Headers

Content-Type : application/json

Request body (raw)

    {
        "id": "3",
        "name": "Lav Sharma",
        "role": "Associate Software Engineer",
        "age": "22",
        "gender": "Male"
    }

PUT /employee/:id

Updates an existing employee.

Headers

Content-Type : application/json

Request body (raw)

    {
        "id": "1",
        "name": "Mahesh Joshi",
        "role": "Software Engineer",
        "age": "23",
        "gender": "Male"
    }

DELETE /employee/:id

Removes an employee given its id.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published