Retrieve an entity by ID

Returns a specific entity by ID

Request

Method: GET
Route: api/idion/idion_relation/{id}
Example: api/idion/idion_relation/4796
Route Parameter Pattern Requirement
id [0-9]+ Required
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": 4796,
                "content": null,
                "type": 1,
                "subtype": null,
                "mwe_id": 2561,
                "related": 2564,
                "idion_relation_category": {
                    "id": 1,
                    "name": "Synonym",
                    "comment": null,
                    "tag": "SYN",
                    "symmetry": 1,
                    "transitivity": 1,
                    "directionality": 0,
                    "inverted_relation_id": 1
                }
            }
        ]
    },
    "system": {
        "messages": [],
        "status": 200,
        "status_text": "OK",
        "errors": [],
        "error_code": 0
    }
}

Time: 0.63

select * from `idion_relation` limit 1

Time: 0.45

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

Time: 0.57

select * from `idion_relation` limit 1

Time: 0.43

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

Time: 0.66

select * from `idion_relation` where `idion_relation`.`id` = ? limit 1
Bindings
0: 4796

Time: 0.5

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

Request

Method: GET
Route: api/idion/idion_relation/{id}
Example: api/idion/idion_relation/4796
Route Parameter Pattern Requirement
id [0-9]+ Required
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