Skip to main content

API routes

Swagger technical specifications of the API routes below are available here.

    /search/form/: search for word forms by string /process/string-to-tokens/: parse a Slovene string to get a list of tokens [/retrieve/lexeme/:lexeme_id(http://localhost:8000/api/redoc/#operation/retrieve_lexeme_create): get a lexeme's data from its id /create/lexeme/: get or create a lexeme based on defining properties /create-batch/lexical-unit: get or create lexical units based on defining properties /detach/lexical-unit/: detach a lexical unit from a resource /retrieve/lexical-unit-forms-status/: get the forms of a lexical unit's parts, with statuses /search-batch/lexical-unit: search for lexical units

    Public (read-only) routes

    /search-batch/lexical-unit/

    Search for lexical units matching the input parameters.

    /retrieve/lexeme/{lexeme_id}/

    Retrieve data of a lexeme.

    Always includes the lemma, part of speech and lexeme-level properties.

    Can also include a hierarchy of the lexeme's forms, if the "extra-data" field is included in the request JSON body with a suitable value. The supported values are:

    /search/form/

    Search for lexeme forms matching the string provided.

    /retrieve/lexical-unit-forms-status/{lexical_unit_id}/

    Retrieve the forms of each component of a lexical unit, along with their status.

    /process/string-to-tokens/

    Process a Slovene string to get a structured list of tokens using the CLASSLA parser.

    Restricted (read/write) routes

    /create-batch/lexical-unit/

    Create (or find) lexical units (and their components, if need be) based on the input parameters provided.

    /detach/lexical-unit/{lexical_unit_id}/

    Detach a lexical unit from a particular resource.

    /create/lexeme/

    Create (or find) a lexeme (and its forms, if need be) based on the input parameters provided.