Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Informações
iconfalse
title1.1.2 Order (Asc)
Expandir
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/campanies?order={campo}

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Campo: nickname

Tipo de Ordenação: Ascendente

Url Utilizada: http://localhost:8051/api/framework/v1/companies?order=nickname

Informações
iconfalse
titleExemplo de Resultado
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "hasNext": false,
    "items": [
        {
            "id": "10",
            "code": 10,
            "nickname": "Colligada",
            "federalId": "38.737.259/0001-92",
            "name": "Coligada",
            "country": "Brasil",
            "isFluigIntegrated": 0
        },
        {
            "id": "6",
            "code": 6,
            "nickname": "INSTITUTO TOTVS DE ENSINO SA",
            "federalId": "25.578.337/0001-01",
            "name": "INSTITUTO TOTVS DE ENSINO SA",
            "stateId": "0626103430010",
            "phoneNumber": "31-21229000",
            "faxNumber": "31-21229155",
            "email": "[email protected]",
            "street": "AVENIDA RAJA GABAGLIA",
            "number": "2664",
            "complement": "2º ANDAR",
            "neighborhood": "SANTA LÚCIA",
            "city": "BELO HORIZONTE",
            "state": "MG",
            "country": "BRASIL",
            "zipCode": "30350-540",
            "isFluigIntegrated": 0
        },
        {
            "id": "7",
            "code": 7,
            "nickname": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA",
            "federalId": "05.295.401/0001-30",
            "name": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA",
            "phoneNumber": "31-21229000",
            "faxNumber": "31-21229155",
            "email": "[email protected]",
            "street": "AVENIDA RAJA GABAGLIA",
            "number": "2664",
            "complement": "2º ANDAR",
            "neighborhood": "SANTA LÚCIA",
            "city": "BELO HORIZONTE",
            "state": "MG",
            "country": "BRASIL",
            "zipCode": "30350-540",
            "isFluigIntegrated": 0
        },
        {
            "id": "8",
            "code": 8,
            "nickname": "Teste",
            "name": "Teste",
            "phoneNumber": "dsds",
            "country": "chile",
            "isFluigIntegrated": 0
        },
        {
            "id": "11",
            "code": 11,
            "nickname": "Teste coligada",
            "name": "Teste coligada",
            "country": "Porto Rico",
            "isFluigIntegrated": 0
        },
        {
            "id": "9",
            "code": 9,
            "nickname": "Teste PUT",
            "federalId": "82.122.163/0001-01",
            "name": "Teste PUT",
            "street": "AVENIDA RAJA GABAGLIA",
            "number": "2664",
            "isFluigIntegrated": 0
        },
        {
            "id": "1",
            "code": 1,
            "nickname": "TOTVS SA",
            "federalId": "21.867.387/0001-58",
            "name": "TOTVS SA",
            "phoneNumber": "31-21229000",
            "faxNumber": "31-21229155",
            "email": "[email protected]",
            "street": "AVENIDA RAJA GABAGLIA",
            "number": "2664",
            "complement": "2º ANDAR",
            "neighborhood": "SANTA LÚCIA",
            "city": "Belo Horizonte",
            "state": "MG",
            "country": "Brasil",
            "zipCode": "30350-540",
            "isFluigIntegrated": 0
        }
    ]
}
Informações
iconfalse
title1.1.2 Order (Desc)
Expandir
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies?order=[-]{campo}

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Campo: nickname

Tipo de Ordenação: Descendente

Url Utilizada: http://localhost:8051/api/framework/v1/companies?order=-nickname

Informações
iconfalse
titleExemplo de Resultado
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "hasNext": false,
    "items": [
        {
            "id": "1",
            "code": 1,
            "nickname": "TOTVS SA",
            "federalId": "21.867.387/0001-58",
            "name": "TOTVS SA",
            "phoneNumber": "31-21229000",
            "faxNumber": "31-21229155",
            "email": "[email protected]",
            "street": "AVENIDA RAJA GABAGLIA",
            "number": "2664",
            "complement": "2º ANDAR",
            "neighborhood": "SANTA LÚCIA",
            "city": "Belo Horizonte",
            "state": "MG",
            "country": "Brasil",
            "zipCode": "30350-540",
            "isFluigIntegrated": 0
        },
        {
            "id": "9",
            "code": 9,
            "nickname": "Teste PUT",
            "federalId": "82.122.163/0001-01",
            "name": "Teste PUT",
            "street": "AVENIDA RAJA GABAGLIA",
            "number": "2664",
            "isFluigIntegrated": 0
        },
        {
            "id": "11",
            "code": 11,
            "nickname": "Teste coligada",
            "name": "Teste coligada",
            "country": "Porto Rico",
            "isFluigIntegrated": 0
        },
        {
            "id": "8",
            "code": 8,
            "nickname": "Teste",
            "name": "Teste",
            "phoneNumber": "dsds",
            "country": "chile",
            "isFluigIntegrated": 0
        },
        {
            "id": "7",
            "code": 7,
            "nickname": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA",
            "federalId": "05.295.401/0001-30",
            "name": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA",
            "phoneNumber": "31-21229000",
            "faxNumber": "31-21229155",
            "email": "[email protected]",
            "street": "AVENIDA RAJA GABAGLIA",
            "number": "2664",
            "complement": "2º ANDAR",
            "neighborhood": "SANTA LÚCIA",
            "city": "BELO HORIZONTE",
            "state": "MG",
            "country": "BRASIL",
            "zipCode": "30350-540",
            "isFluigIntegrated": 0
        },
        {
            "id": "6",
            "code": 6,
            "nickname": "INSTITUTO TOTVS DE ENSINO SA",
            "federalId": "25.578.337/0001-01",
            "name": "INSTITUTO TOTVS DE ENSINO SA",
            "stateId": "0626103430010",
            "phoneNumber": "31-21229000",
            "faxNumber": "31-21229155",
            "email": "[email protected]",
            "street": "AVENIDA RAJA GABAGLIA",
            "number": "2664",
            "complement": "2º ANDAR",
            "neighborhood": "SANTA LÚCIA",
            "city": "BELO HORIZONTE",
            "state": "MG",
            "country": "BRASIL",
            "zipCode": "30350-540",
            "isFluigIntegrated": 0
        },
        {
            "id": "10",
            "code": 10,
            "nickname": "Colligada",
            "federalId": "38.737.259/0001-92",
            "name": "Coligada",
            "country": "Brasil",
            "isFluigIntegrated": 0
        }
    ]
}

...