Last updated 1 year ago
Good to know: All the methods shown below are synced to an example Swagger file URL and are kept up to date automatically with changes to the API.
The user name for login
The password for login in clear text
curl -L \ --url 'https://petstore.swagger.io/v2/user/login'
text
curl -L \ --url 'https://petstore.swagger.io/v2/user/logout'
No body
User Status
curl -L \ --request POST \ --url 'https://petstore.swagger.io/v2/user/createWithList' \ --header 'Content-Type: application/json' \ --data '[ { "id": 1, "username": "text", "firstName": "text", "lastName": "text", "email": "text", "password": "text", "phone": "text", "userStatus": 1 } ]'
curl -L \ --request POST \ --url 'https://petstore.swagger.io/v2/user/createWithArray' \ --header 'Content-Type: application/json' \ --data '[ { "id": 1, "username": "text", "firstName": "text", "lastName": "text", "email": "text", "password": "text", "phone": "text", "userStatus": 1 } ]'