Skip to content

Service: Virtual Corpus Access List

Eliza Margaretha edited this page Jan 31, 2023 · 10 revisions

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

Lists all virtual corpora accesses available to the authenticated user, if the user have virtual corpus access admin rights. If the groupName is specified, lists only the virtual corpora accesses available to the group. In this case, the authenticated user must have the virtual corpus admin right for the group.

Available in: full version

Method: GET

Service URL: root/vc/access/

Parameters

Header Parameter

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

Query Parameter

Name Required Description Type
groupName no a user group name String

Examples

Request with cURL

List all virtual corpus accesses available to the authenticated user

curl -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MTM1MzI3O
       TAxMzQsInN1YiI6InVzZXJuYW1lIiwiaXNzIjoiaHR0cDpcL1wva29yYXAuaWRzLW1
       hbm5oZWltLmRlIn0.p4jHIGeVwTpYAPFiWAd0R8Zcazyg7e9_tUGxOyFGUlo' 
      http://localhost:8089/api/v1.0/vc/access

Response

[
    {
        "accessId": 2,
        "createdBy": "marlin",
        "vcId": 4,
        "vcName": "published-vc",
        "userGroupId": 1,
        "userGroupName": "marlin-group"
    },
    {
        "accessId": 4,
        "createdBy": "marlin",
        "vcId": 5,
        "vcName": "marlin-vc",
        "userGroupId": 1,
        "userGroupName": "marlin-group"
    },
    {
        "accessId": 1,
        "createdBy": "dory",
        "vcId": 2,
        "vcName": "group-vc",
        "userGroupId": 2,
        "userGroupName": "dory-group"
    }
]

Request with Basic authentication (for testing only)

Lists virtual corpus accesses available to dory-group

curl -H 'Authorization: Basic ZG9yeTpwYXNzd29yZA==' 
      http://localhost:8089/api/v1.0/vc/access?groupName=dory-group

Response

[{
    "accessId": 1,
    "createdBy": "dory",
    "vcId": 2,
    "vcName": "group-vc",
    "userGroupId": 2,
    "userGroupName": "dory group"
}]

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