Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

Versión

Fecha

Autor

Versión actual (v. 2)

14/09/2023

Juan Sosa

 

Component detail uri:

/api/v2/third_party/components/{id}

Method:

GET

Header:

    'X-SIMA-APIKEY: {{API-KEY}}',
    'X-SIMA-SYSTEM-ID: 8',
    'Accept: application/json',
    'Content-Type: application/json'

Parameters:

id: (int)

Response example:

{
    "id": 2,
    "name": "Fósforo",
    "deleted_at": null
}

Component list uri:

/api/v2/third_party/components

Method:

GET

Header:

    'X-SIMA-APIKEY: {{API-KEY}}',
    'X-SIMA-SYSTEM-ID: 8',
    'Accept: application/json',
    'Content-Type: application/json'

Parameters:

page: (int) {1..} default 1
size: (int) {1..} default 10
id: (int)
name: (string)
deleted_at_from:(date-ATOM) {YYYY-MM-DDTHH:MM:SSZ}
deleted_at_to:(date-ATOM) {YYYY-MM-DDTHH:MM:SSZ}

Response example:

{
    "items": [
        {
            "id": 1,
            "name": "Nitrógeno",
            "deleted_at": null
        },
        {
            "id": 2,
            "name": "Fósforo",
            "deleted_at": null
        },
        {
            "id": 3,
            "name": "Potasio",
            "deleted_at": null
        }
    ],
    "current_page": 1,
    "next_page": 1,
    "total_pages": 1,
    "total_items": 3
}

  • No labels