Skip to content

VC Field Value Retrieval

Eliza Margaretha Illig edited this page Oct 24, 2024 · 1 revision

** 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

Request

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'

Response

HTTP Status Code Description
200 OK successful request
400 Bad Request when fieldName is null
401 Unauthorized when the operation is not permitted, e.g. user is not a system-admin.

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 (VC) services

VC sharing services

Administrative services

Description services

Clone this wiki locally