Введение

Документация предоставляет всю информацию, необходимую вам для работы с нашим API.

Аутентификация запросов

Этот API не аутентифицирован.

Весы моделей

Список

GET
https://ml.stage.odinn.cloud
/api/weight

Получить список весов (с пагинацией) Стандартный листинг Одинна с возможностью фильтрации

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
integer

Номер страницы.

Example:
1
page-size
integer

Количество элементов, возвращаемых на странице. По умолчанию 50.

Example:
50
Example request:
curl --request GET \
    --get "https://ml.stage.odinn.cloud/api/weight?page=1&page-size=50" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "current_page": 1,
    "data": [],
    "first_page_url": "https://ml.stage.odinn.cloud/api/weight?page=1",
    "from": null,
    "last_page": 1,
    "last_page_url": "https://ml.stage.odinn.cloud/api/weight?page=1",
    "links": [
        {
            "url": null,
            "label": "« Назад",
            "active": false
        },
        {
            "url": "https://ml.stage.odinn.cloud/api/weight?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Вперёд »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://ml.stage.odinn.cloud/api/weight",
    "per_page": 50,
    "prev_page_url": null,
    "to": null,
    "total": 0
}

Получить информацию о весах модели

GET
https://ml.stage.odinn.cloud
/api/weight/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
uuid
required

Идентификатор (UUID)

Example:
8947c4bb-ac4d-3c11-b4a6-2566a0f2a55e
Example request:
curl --request GET \
    --get "https://ml.stage.odinn.cloud/api/weight/8947c4bb-ac4d-3c11-b4a6-2566a0f2a55e" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "message": "Weight #8947c4bb-ac4d-3c11-b4a6-2566a0f2a55e Not found"
}

Скачать файл весов

GET
https://ml.stage.odinn.cloud
/api/weight/{id}/download

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
uuid
required

Идентификатор (UUID)

Example:
f420d9e5-f8e6-3c7c-b31d-e90e44824e07
Example request:
curl --request GET \
    --get "https://ml.stage.odinn.cloud/api/weight/f420d9e5-f8e6-3c7c-b31d-e90e44824e07/download" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "message": ""
}

Создать

POST
https://ml.stage.odinn.cloud
/api/weight

Headers

Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://ml.stage.odinn.cloud/api/weight" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=et"\
    --form "notes=enim"\
    --form "models[]=sit"\
    --form "file=@/tmp/phpniCFNf" 

Обновить информацию о весах моделей

PUT
https://ml.stage.odinn.cloud
/api/weight/{id}

Headers

Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

URL Parameters

id
uuid
required

Идентификатор (UUID)

Example:
9a9d67d3-0257-331b-af67-f5a988689208

Body Parameters

Example request:
curl --request PUT \
    "https://ml.stage.odinn.cloud/api/weight/9a9d67d3-0257-331b-af67-f5a988689208" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=deleniti"\
    --form "notes=sit"\
    --form "models[]=blanditiis"\
    --form "file=@/tmp/php8rcxpi" 

Удалить весы модели

DELETE
https://ml.stage.odinn.cloud
/api/weight/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
uuid
required

Идентификатор (UUID)

Example:
4c2989f6-9f7d-3fd1-af7c-f946106703b2
Example request:
curl --request DELETE \
    "https://ml.stage.odinn.cloud/api/weight/4c2989f6-9f7d-3fd1-af7c-f946106703b2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Модели

Список

GET
https://ml.stage.odinn.cloud
/api/ai-model

Получить список весов (с пагинацией) Стандартный листинг Одинна с возможностью фильтрации

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
integer

Номер страницы.

Example:
1
page-size
integer

Количество элементов, возвращаемых на странице. По умолчанию 50.

Example:
50
Example request:
curl --request GET \
    --get "https://ml.stage.odinn.cloud/api/ai-model?page=1&page-size=50" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "current_page": 1,
    "data": [],
    "first_page_url": "https://ml.stage.odinn.cloud/api/ai-model?page=1",
    "from": null,
    "last_page": 1,
    "last_page_url": "https://ml.stage.odinn.cloud/api/ai-model?page=1",
    "links": [
        {
            "url": null,
            "label": "« Назад",
            "active": false
        },
        {
            "url": "https://ml.stage.odinn.cloud/api/ai-model?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Вперёд »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://ml.stage.odinn.cloud/api/ai-model",
    "per_page": 50,
    "prev_page_url": null,
    "to": null,
    "total": 0
}

Получить информацию о модели

GET
https://ml.stage.odinn.cloud
/api/ai-model/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
uuid
required

Идентификатор (UUID)

Example:
cae7c51c-e2ad-34db-8f3d-cd53f2aa1ed0
Example request:
curl --request GET \
    --get "https://ml.stage.odinn.cloud/api/ai-model/cae7c51c-e2ad-34db-8f3d-cd53f2aa1ed0" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "message": "AI Model #cae7c51c-e2ad-34db-8f3d-cd53f2aa1ed0 Not found"
}

Скачать файл модели

GET
https://ml.stage.odinn.cloud
/api/ai-model/{id}/download

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
uuid
required

Идентификатор (UUID)

Example:
e8d65f86-3cd4-36ba-97e3-47e185cb004b
Example request:
curl --request GET \
    --get "https://ml.stage.odinn.cloud/api/ai-model/e8d65f86-3cd4-36ba-97e3-47e185cb004b/download" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "message": ""
}

Создать

POST
https://ml.stage.odinn.cloud
/api/ai-model

Headers

Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://ml.stage.odinn.cloud/api/ai-model" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=iusto"\
    --form "notes=dolorem"\
    --form "classes[]=consequatur"\
    --form "file=@/tmp/phphbR3ji" 

Обновить информацию о модели

PUT
https://ml.stage.odinn.cloud
/api/ai-model/{id}

Headers

Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

URL Parameters

id
uuid
required

Идентификатор (UUID)

Example:
52956a78-2d54-351c-aadc-8a104c4fba2b

Body Parameters

Example request:
curl --request PUT \
    "https://ml.stage.odinn.cloud/api/ai-model/52956a78-2d54-351c-aadc-8a104c4fba2b" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=delectus"\
    --form "notes=et"\
    --form "classes[]=et"\
    --form "file=@/tmp/phpQ5zXBh" 

Удалить модель

DELETE
https://ml.stage.odinn.cloud
/api/ai-model/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
uuid
required

Идентификатор (UUID)

Example:
ef27b850-ee05-3430-bf8a-4ea16a094854
Example request:
curl --request DELETE \
    "https://ml.stage.odinn.cloud/api/ai-model/ef27b850-ee05-3430-bf8a-4ea16a094854" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"