wiki:JSONInterface

Version 2 (modified by jurzua, 13 years ago) (diff)

--

methods

Method description
jsoInterface?entId=x1 returns an entity by id
jsonInterface?codexIdentifier=x1&collection=x2 returns a codex by its identifier and collection

examples

  • http://localhost:8080/om4-ismi/jsonInterface?entId=432674

    Output:

    {
        "entity": {
            "id": 432674,
            "attributes": [
                {
                    "name": "name_translit",
                    "value": "ʿAbbās Wasīm Efendī"
                },
                {
                    "name": "url",
                    "value": "http://islamsci.mcgill.ca/RASI/BEA/Abbas_Wasim_Efendi_BEA.htm"
                }
            ],
            "targets": [
                {
                    "source": 432672,
                    "name": "is_prime_alias_name_of",
                    "target": 432674
                }
            ],
            "sources": [
                {
                    "source": 432674,
                    "name": "was_born_in",
                    "target": 149169
                }
            ]
        }
    }