MagicCrates
  • Welcome!
  • Quick Start
  • Getting Started
    • Default Crate
  • Editor In-Game
    • Creating a crate
    • Rewards Preview
  • 🎮Commands
  • Reference
    • API Reference
      • Pets
      • Users
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Users

PreviousPets

Last updated 2 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 actions

Creating users

Logs user into the system

get
Query parameters
usernamestringRequired

The user name for login

passwordstringRequired

The password for login in clear text

Responses
200
successful operation
Responsestring
400
Invalid username/password supplied
get
GET /v2/user/login HTTP/1.1
Host: petstore.swagger.io
Accept: */*
text

Logs out current logged in user session

get
Responses
default
successful operation
get
GET /v2/user/logout HTTP/1.1
Host: petstore.swagger.io
Accept: */*
default

successful operation

No content

  • User actions
  • GETLogs user into the system
  • GETLogs out current logged in user session
  • Creating users
  • POSTCreates list of users with given input array
  • POSTCreates list of users with given input array

Creates list of users with given input array

post
Body
idinteger · int64Optional
usernamestringOptional
firstNamestringOptional
lastNamestringOptional
emailstringOptional
passwordstringOptional
phonestringOptional
userStatusinteger · int32Optional

User Status

Responses
default
successful operation
post
POST /v2/user/createWithList HTTP/1.1
Host: petstore.swagger.io
Content-Type: application/json
Accept: */*
Content-Length: 128

[
  {
    "id": 1,
    "username": "text",
    "firstName": "text",
    "lastName": "text",
    "email": "text",
    "password": "text",
    "phone": "text",
    "userStatus": 1
  }
]
default

successful operation

No content

Creates list of users with given input array

post
Body
idinteger · int64Optional
usernamestringOptional
firstNamestringOptional
lastNamestringOptional
emailstringOptional
passwordstringOptional
phonestringOptional
userStatusinteger · int32Optional

User Status

Responses
default
successful operation
post
POST /v2/user/createWithArray HTTP/1.1
Host: petstore.swagger.io
Content-Type: application/json
Accept: */*
Content-Length: 128

[
  {
    "id": 1,
    "username": "text",
    "firstName": "text",
    "lastName": "text",
    "email": "text",
    "password": "text",
    "phone": "text",
    "userStatus": 1
  }
]
default

successful operation

No content