Skip to content

Field Value Retrieval

Eliza Margaretha edited this page May 20, 2022 · 2 revisions

** WARNING: This service is experimental and may change without any notice.

Lists field values of a virtual corpus. This service is restricted for system admin use only.

Available in: full version

Method: GET

Service URL: root/vc/field/~{vc_creator}/{vc_name}

Parameters

Header Parameter

Name Required Authentication scheme Value
Authorization yes HTTP authentication with scheme: Bearer OAuth2 access token

Path Parameters

Name Required Description Type Example
vc_creator yes username of the vc creator, must be the same as the authenticated user or a system admin String system
vc_name yes virtual corpus name consisting only of alphabets, underscores, dashes or fullstops String named-vc1

Query Parameters

Name Required Description Type Value
fieldName yes a field name String for example: textSigle

Examples

Request with cURL

curl -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MT' 
     'http://localhost:8089/api/v1.0/vc/field/~system/named-vc1?fieldName=textSigle'

Request with Basic authentication (for testing only)

curl -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' 
     'http://localhost:8089/api/v1.0/vc/field/~system/named-vc1?fieldName=textSigle'

Output example:

{
    "@context": "http://korap.ids-mannheim.de/ns/KoralQuery/v0.3/context.jsonld",
    "corpus": {
        "@type": "koral:doc",
        "key": "textSigle",
        "type": "type:string",
        "value": [
            "GOE/AGA/01784",
            "GOE/AGF/00000"
        ]
    }
}

Advanced Setting

Developer Setting

Search services

Metadata services

Authentication and Authorization services

Client services

Super client services

Plugin services

User services

User group services

Virtual corpus services

Virtual corpus access services

Administrative services

Description services

Clone this wiki locally