Nia Api Docs
  1. APIs
Nia Api Docs
  • Walk through the Nia Api
  • APIs
    • Find by ID
      GET
    • Add a new pet to the store
      POST
    • Update an existing user
      PUT
    • Deletes a user
      DELETE
    • Finds User by status
      GET
  1. APIs

Find by ID

Prod Env
https://prod.your-api-server.com
Prod Env
https://prod.your-api-server.com
GET
https://prod.your-api-server.com
/user/{Id}
pet
Last modified:2023-09-25 16:45:23

Request

Path Params
Id
string 
required

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://prod.your-api-server.com/user/'

Responses

🟢200OK
application/json
Body
code
integer 
required
status code
>= 0<= 0
data
object (User) 
required
pet details
id
integer <int64>
required
User ID
>= 1
category
object (Category) 
required
group
name
string 
required
name
Example:
doggie
photoUrls
array[string]
required
image URL
tags
array[object (Tag) {2}] 
required
tag
status
enum<string> 
required
Status
Allowed values:
availablependingsold
Example
{
    "code": 0,
    "data": {
        "name": "Hello Kitty",
        "photoUrls": [
            "http://dummyimage.com/400x400"
        ],
        "id": 3,
        "category": {
            "id": 71,
            "name": "Cat"
        },
        "tags": [
            {
                "id": 22,
                "name": "Cat"
            }
        ],
        "status": "sold"
    }
}
Modified at 2023-09-25 16:45:23
Previous
Walk through the Nia Api
Next
Add a new pet to the store
Built with