Otros Recursos

Otros Recursos


Acciones

Listado de Monedas

URL: https://__URL_DE_TU_MARKET__/api/v1/currencies/

Verbo: GET

Ejemplo de llamada GET

curl --location --request GET 'http://ingenio-market.loc/api/v1/currencies/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 1|gcuLz11M0LapVax1kKsyi6T0RVOgJX4UXro0pSEf'

Ejemplo de Respuesta

{
    "data": [
        {
            "id": 1,
            "name": "Peso Argentino",
            "symbol": "AR$",
            "code": "ARS"
        },
        {
            "id": 2,
            "name": "Dolar",
            "symbol": "USD$",
            "code": "USD"
        },
        {
            "id": 3,
            "name": "Peso Chileno",
            "symbol": "CLP$",
            "code": "CLP"
        },
        {
            "id": 4,
            "name": "Peso Colombiano",
            "symbol": "COP$",
            "code": "COP"
        },
        {
            "id": 5,
            "name": "Peso Boliviano",
            "symbol": "Bs.",
            "code": "BOP"
        },
        {
            "id": 6,
            "name": "EURO",
            "symbol": "€",
            "code": "EUR"
        },
        {
            "id": 7,
            "name": "Sol Peruano",
            "symbol": "S/",
            "code": "PEN"
        }
    ]
}

Listado de Tipos de Campo

URL: https://__URL_DE_TU_MARKET__/api/v1/field_types/

Verbo: GET

Ejemplo de llamada GET

curl --location --request GET 'http://ingenio-market.loc/api/v1/field_types/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 1|gcuLz11M0LapVax1kKsyi6T0RVOgJX4UXro0pSEf'

Ejemplo de Respuesta

[
    {
        "id": 1,
        "name": "Opción Única",
        "attributes_field": {
            "required": "",
            "options": true
        },
        "callback_render": "_render_radio"
    },
    {
        "id": 2,
        "name": "Opción Multiple",
        "attributes_field": {
            "required": "",
            "options": true
        },
        "callback_render": "_render_checkbox"
    },
    {
        "id": 3,
        "name": "Opción Única Desplegable",
        "attributes_field": {
            "required": "",
            "options": true
        },
        "callback_render": "_render_select"
    },
    {
        "id": 4,
        "name": "Texto",
        "attributes_field": {
            "required": "",
            "options": false
        },
        "callback_render": "_render_text"
    },
    {
        "id": 5,
        "name": "Texto con Memoria",
        "attributes_field": {
            "required": "",
            "options": false
        },
        "callback_render": "_render_text_memory"
    },
    {
        "id": 6,
        "name": "Número Entero",
        "attributes_field": {
            "step": "1",
            "min": "",
            "max": "",
            "required": "",
            "options": false
        },
        "callback_render": "_render_int"
    },
    {
        "id": 7,
        "name": "Número Decimal",
        "attributes_field": {
            "step": "1",
            "min": "",
            "max": "",
            "required": "",
            "options": false
        },
        "callback_render": "_render_float"
    },
    {
        "id": 8,
        "name": "Booleano",
        "attributes_field": {
            "step": "1",
            "min": "",
            "max": "",
            "required": "",
            "options": false
        },
        "callback_render": "_render_boolean"
    },
    {
        "id": 9,
        "name": "Opción Única Desplegable (con Estilo)",
        "attributes_field": {
            "required": "",
            "options": true
        },
        "callback_render": "_render_select2"
    },
    {
        "id": 10,
        "name": "Texto Largo",
        "attributes_field": {
            "required": "",
            "options": false
        },
        "callback_render": "_render_textarea"
    },
    {
        "id": 11,
        "name": "URL",
        "attributes_field": {
            "required": "",
            "options": false
        },
        "callback_render": "_render_url"
    },
    {
        "id": 12,
        "name": "Fecha",
        "attributes_field": {
            "required": "",
            "options": false
        },
        "callback_render": "_render_date"
    }
]