Перейти к основному содержанию
GET
/
v1
/
plus
/
companies
cURL
curl --request GET \
  --url https://api.example.com/v1/plus/companies/
[
  {
    "id": 123,
    "worktimes": [
      {
        "id": 123,
        "start": "<string>",
        "end": "<string>",
        "weekdays": [
          123
        ]
      }
    ],
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "price_from": "<string>",
    "rental_point_id": 0,
    "active": true,
    "description": "<string>",
    "address": "<string>",
    "address_url": "<string>",
    "icon": "<string>",
    "background": "<string>",
    "extra": "<unknown>",
    "payment": true,
    "tenant": 123,
    "user": 123,
    "category": 123
  }
]

Параметры запроса

category
integer
category__in
integer[]

Несколько значений могут быть разделены запятыми.

id__in
integer[]

Несколько значений могут быть разделены запятыми.

ordering
string

Which field to use when ordering the results.

A search term.

Ответ

200 - application/json
id
integer
обязательно
worktimes
object[]
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
name
string
обязательно
Maximum string length: 255
price_from
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
rental_point_id
integer<int64> | null
Требуемый диапазон: -9223372036854776000 <= x <= 9223372036854776000
active
boolean
description
string | null
address
string
Maximum string length: 255
address_url
string<uri> | null
Maximum string length: 200
icon
string<uri> | null
background
string<uri> | null
extra
any
payment
boolean
tenant
integer | null
user
integer | null
category
integer | null