Stoplight Assignemt -3

Swagger Assignment:

Using the Stopligh API tool, create an API documentation based on the provided input below. Please share the Output file after completing the assignment.

API Purpose: Update a user

URL: https://petstore3.swagger.io/api/v3/user/{username}

Authentication: None

Method: PUT

Tag: User

Request Body:

{
“id”: 10,
“username”: “theUser”,
“firstName”: “John”,
“lastName”: “James”,
“email”: “john@email.com”,
“password”: “12345”,
“phone”: “12345”,
“userStatus”: 1
}

 

Response Example:

Media Type: application/json

{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": "12345",
  "phone": "12345",
  "userStatus": 1
}

 

 

Leave a Comment