Retrieve latest entities

Returns the collection of the latest entities including related data like definitions and variants

Request

Method: GET
Route: api/idion/idion_mwe/latest/{limit?}
Example: api/idion/idion_mwe/latest/5
Route Parameter Pattern Requirement
limit [0-9]+ Optional
Request Headers
host: api.greek.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:58:06 GMT
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
{
    "handler": "ApiResponse handler",
    "result": {
        "data": [
            {
                "id": 3085,
                "variants": [
                    "απέχω παρασάγγας από κάποιον\/κάτι"
                ],
                "description": null,
                "html_comment": null,
                "definitions": [
                    {
                        "id": 2607,
                        "lemma_id": 3085,
                        "definition": "βρίσκομαι πολύ μακριά από κάποιον\/κάτι",
                        "language": 1,
                        "definition_comment": null,
                        "intensification": null,
                        "mitigation": null,
                        "languages": {
                            "id": 1,
                            "value": "Greek"
                        },
                        "style_tags": [],
                        "polarity_tags": [],
                        "emphasis_tags": [],
                        "idion_definition_translations": []
                    }
                ]
            },
            {
                "id": 3084,
                "variants": [
                    "βρίσκομαι ένα βήμα από κάποιον\/κάτι"
                ],
                "description": null,
                "html_comment": null,
                "definitions": [
                    {
                        "id": 2606,
                        "lemma_id": 3084,
                        "definition": "δεν απέχω πολύ από κάποιον\/κάτι",
                        "language": 1,
                        "definition_comment": null,
                        "intensification": null,
                        "mitigation": null,
                        "languages": {
                            "id": 1,
                            "value": "Greek"
                        },
                        "style_tags": [],
                        "polarity_tags": [],
                        "emphasis_tags": [],
                        "idion_definition_translations": []
                    }
                ]
            },
            {
                "id": 3083,
                "variants": [
                    "είμαι ένα βήμα από κάποιον\/κάτι",
                    "είμαι ένα βηματάκι από κάποιον\/κάτι"
                ],
                "description": null,
                "html_comment": null,
                "definitions": [
                    {
                        "id": 2605,
                        "lemma_id": 3083,
                        "definition": "λίγο απέχω από κάποιον\/κάτι",
                        "language": 1,
                        "definition_comment": null,
                        "intensification": null,
                        "mitigation": null,
                        "languages": {
                            "id": 1,
                            "value": "Greek"
                        },
                        "style_tags": [],
                        "polarity_tags": [],
                        "emphasis_tags": [],
                        "idion_definition_translations": [
                            {
                                "id": 3185,
                                "language": {
                                    "id": 2,
                                    "value": "English"
                                },
                                "definition_id": 2605,
                                "translation": "to border on something",
                                "definition_comment": null
                            }
                        ]
                    }
                ]
            },
            {
                "id": 3082,
                "variants": [
                    "λέω από μέσα μου",
                    "λέω μέσα μου"
                ],
                "description": null,
                "html_comment": null,
                "definitions": [
                    {
                        "id": 2604,
                        "lemma_id": 3082,
                        "definition": "σκέφτομαι",
                        "language": 1,
                        "definition_comment": null,
                        "intensification": null,
                        "mitigation": null,
                        "languages": {
                            "id": 1,
                            "value": "Greek"
                        },
                        "style_tags": [],
                        "polarity_tags": [],
                        "emphasis_tags": [],
                        "idion_definition_translations": []
                    }
                ]
            },
            {
                "id": 3081,
                "variants": [
                    "τραβάω τις τρίχες μου"
                ],
                "description": "φαίνεται να μην έχει τελικούς χρόνους",
                "html_comment": null,
                "definitions": [
                    {
                        "id": 2601,
                        "lemma_id": 3081,
                        "definition": "είμαι σε δύσκολη θέση (και προσπαθώ να ξεμπλέξω)",
                        "language": 1,
                        "definition_comment": null,
                        "intensification": "και",
                        "mitigation": null,
                        "languages": {
                            "id": 1,
                            "value": "Greek"
                        },
                        "style_tags": [
                            {
                                "id": 2,
                                "value": "Colloquial (λαϊκός)",
                                "pivot": {
                                    "definition_id": 2601,
                                    "style_id": 2
                                }
                            }
                        ],
                        "polarity_tags": [],
                        "emphasis_tags": [],
                        "idion_definition_translations": []
                    }
                ]
            }
        ]
    },
    "system": {
        "messages": [],
        "status": 200,
        "status_text": "OK",
        "errors": [],
        "error_code": 0
    }
}

Time: 0.83

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

Time: 0.71

select * from `idion_definition` where `idion_definition`.`lemma_id` in (3081, 3082, 3083, 3084, 3085)

Time: 0.67

select * from `language` where `language`.`id` in (1)

Time: 0.81

select `style_tag`.*, `definition_has_style`.`definition_id` as `pivot_definition_id`, `definition_has_style`.`style_id` as `pivot_style_id` from `style_tag` inner join `definition_has_style` on `style_tag`.`id` = `definition_has_style`.`style_id` where `definition_has_style`.`definition_id` in (2601, 2604, 2605, 2606, 2607)

Time: 0.72

select `polarity_tag`.*, `definition_has_polarity`.`definition_id` as `pivot_definition_id`, `definition_has_polarity`.`polarity_id` as `pivot_polarity_id` from `polarity_tag` inner join `definition_has_polarity` on `polarity_tag`.`id` = `definition_has_polarity`.`polarity_id` where `definition_has_polarity`.`definition_id` in (2601, 2604, 2605, 2606, 2607)

Time: 0.85

select `emphasis_tag`.*, `definition_has_emphasis`.`definition_id` as `pivot_definition_id`, `definition_has_emphasis`.`emphasis_id` as `pivot_emphasis_id` from `emphasis_tag` inner join `definition_has_emphasis` on `emphasis_tag`.`id` = `definition_has_emphasis`.`emphasis_id` where `definition_has_emphasis`.`definition_id` in (2601, 2604, 2605, 2606, 2607)

Time: 0.76

select * from `idion_definition_translation` where `idion_definition_translation`.`definition_id` in (2601, 2604, 2605, 2606, 2607)

Time: 0.76

select * from `language` where `language`.`id` in (2)

Request

Method: GET
Route: api/idion/idion_mwe/latest/{limit?}
Example: api/idion/idion_mwe/latest/5
Route Parameter Pattern Requirement
limit [0-9]+ Optional
Request Headers
host: api.greek.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