-
Notifications
You must be signed in to change notification settings - Fork 3
Service: Virtual Corpus Access List
Eliza Margaretha edited this page Jan 31, 2023
·
10 revisions
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/
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 |
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"
}]
- Setting LDAP
- Setting initial super client
- Setting a custom environment
- Setting resources for CLARIN FCS
- Disabling query rewrites
- Named virtual corpora
- Importing Kustvakt to Eclipse
- Installing Lombok
- Setting annotation processors
- Setting a test environment
- HTTP Basic Authentication
- OAuth2 authorization scopes
- OAuth2 authorization request
- OAuth2 token request
- OAuth2 token revocation
- OAuth2 client registration
- OAuth2 client info
- OAuth2 client deregistration
- OAuth2 client secret reset
- Plugin registration
- Plugin list (marketplace)
- Plugin installation
- Plugin uninstallation
- Installed plugin list
- VC creation and update
- VC deletion
- VC list
- VC info
- VC KoralQuery
- VC statistics
- VC statistics with KoralQuery