Swagger Assignment:
Using the Swagger API tool, create an API based on the provided input below and write interactive API documentation. Please share the output file after completing the assignment.
API Purpose: Update an employee record
Server: https://dummy.restapiexample.com/api/v1
Endpoint: /update/{id}
Authentication: None
Method: PUT
Tag: Employee
Request Body:
{"name":"test","salary":"123","age":"23"}
Response Example:
Media Type: application/json
{
"status": "success",
"data": {
"name": "test",
"salary": "123",
"age": "23",
"id": 25
}
}