Last updated 3 years 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.
/user/login
The user name for login
The password for login in clear text
curl -L \ --url 'https://petstore.swagger.io/v2/user/login'
text
/user/logout
curl -L \ --url 'https://petstore.swagger.io/v2/user/logout'
No body
/user/createWithList
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 } ]'
/user/createWithArray
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 } ]'