Перейти к основному содержанию
GET
/
v1
/
crm
/
metrics
/
workshops
/
resources
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/metrics/workshops/resources/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "inventory": {
        "id": 123,
        "name": "<string>",
        "group": 123,
        "unique_id": "<string>",
        "category": 123,
        "image": "<string>",
        "extra": "<unknown>",
        "sublease_user": 123,
        "state": 123,
        "disabled": 0,
        "rental_point": 123
      },
      "inventory_group": {
        "id": 123,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "name": "<string>",
        "deleted": true,
        "category": 123,
        "unit_price": "<string>",
        "unit_count": "<string>",
        "unit_type": "litre",
        "unit_sum": "<string>",
        "image": "<string>",
        "unique_id": "<string>",
        "barcode": "<string>",
        "extra": "<unknown>",
        "filters": [
          "<string>"
        ],
        "points": [
          -1
        ],
        "published": true,
        "type": 0,
        "price": "<string>",
        "lifetime": -1
      },
      "resource": {
        "id": 123,
        "name": "<string>",
        "price": "<string>",
        "count": -1
      },
      "inventory_group_count": -1,
      "price": "<string>",
      "tarif": 123,
      "extra": "<unknown>"
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

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

client
integer
created_at__date__gte
string<date>
created_at__date__lte
string<date>
created_by
integer
inventory
integer
ordering
string

Which field to use when ordering the results.

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

A search term.

status
enum<integer>
  • 0 - NEW
  • 1 - IN_PROGRESS
  • 2 - COMPLETED
  • 3 - ARCHIVE
Доступные опции:
0,
1,
2,
3
type
enum<integer>
  • 0 - INTERNAL
  • 1 - EXTERNAL
Доступные опции:
0,
1
worker
integer

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"