Retrieve latest entities

Returns the collection of the latest entities

Request

Method: GET
Route: api/idion/idion_relation/latest/{limit?}
Example: api/idion/idion_relation/latest/5
Route Parameter Pattern Requirement
limit [0-9]+ Optional
Request Headers
host: api.pomak.idion.athenarc.gr
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
content-length: 2
content-type: application/json

Response

200 JSON
Response Headers
cache-control: no-cache, private
date: Sat, 17 Feb 2024 20:57:18 GMT
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
{
    "handler": "ApiResponse handler",
    "result": {
        "data": [
            {
                "id": 4953,
                "content": null,
                "type": 3,
                "subtype": null,
                "mwe_id": 2745,
                "related": 2746,
                "idion_relation_category": {
                    "id": 3,
                    "name": "Opposite",
                    "comment": null,
                    "tag": "OPP",
                    "symmetry": 1,
                    "transitivity": 0,
                    "directionality": 0,
                    "inverted_relation_id": 3
                }
            },
            {
                "id": 4952,
                "content": null,
                "type": 1,
                "subtype": null,
                "mwe_id": 2745,
                "related": 2711,
                "idion_relation_category": {
                    "id": 1,
                    "name": "Synonym",
                    "comment": null,
                    "tag": "SYN",
                    "symmetry": 1,
                    "transitivity": 1,
                    "directionality": 0,
                    "inverted_relation_id": 1
                }
            },
            {
                "id": 4951,
                "content": null,
                "type": 3,
                "subtype": null,
                "mwe_id": 2711,
                "related": 2746,
                "idion_relation_category": {
                    "id": 3,
                    "name": "Opposite",
                    "comment": null,
                    "tag": "OPP",
                    "symmetry": 1,
                    "transitivity": 0,
                    "directionality": 0,
                    "inverted_relation_id": 3
                }
            },
            {
                "id": 4950,
                "content": null,
                "type": 1,
                "subtype": null,
                "mwe_id": 2711,
                "related": 2745,
                "idion_relation_category": {
                    "id": 1,
                    "name": "Synonym",
                    "comment": null,
                    "tag": "SYN",
                    "symmetry": 1,
                    "transitivity": 1,
                    "directionality": 0,
                    "inverted_relation_id": 1
                }
            },
            {
                "id": 4949,
                "content": null,
                "type": 3,
                "subtype": null,
                "mwe_id": 2712,
                "related": 2746,
                "idion_relation_category": {
                    "id": 3,
                    "name": "Opposite",
                    "comment": null,
                    "tag": "OPP",
                    "symmetry": 1,
                    "transitivity": 0,
                    "directionality": 0,
                    "inverted_relation_id": 3
                }
            }
        ]
    },
    "system": {
        "messages": [],
        "status": 200,
        "status_text": "OK",
        "errors": [],
        "error_code": 0
    }
}

Time: 0.64

select * from `idion_relation` order by `id` desc limit 5

Time: 0.42

select * from `idion_relation_category` where `idion_relation_category`.`id` in (1, 3)

Request

Method: GET
Route: api/idion/idion_relation/latest/{limit?}
Example: api/idion/idion_relation/latest/5
Route Parameter Pattern Requirement
limit [0-9]+ Optional
Request Headers
host: api.pomak.idion.athenarc.gr
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
content-length: 2
content-type: application/json