-
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" }]
- 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
- User group creation
- User group deletion
- User group list
- Member invitation
- Member deletion
- Approval of member invitation
- Rejection of member invitation
- Member role management
- Virtual corpus creation and update
- Virtual corpus deletion
- Virtual corpus list
- Virtual corpus retrieval
- Virtual corpus statistics
- Virtual corpus statistics with KoralQuery