-
Notifications
You must be signed in to change notification settings - Fork 3
Service: Load and Cache System VC (System Admin)
Allows system admins to check virtual corpora definitions (KoralQuery in jsonld.gz) located at the named-vc folder as defined in the kustvakt configuration file. New vc will be loaded, stored and cached as system VC. Existing vc will be updated, if there have been new changes.
This service requires admin authentication either by using the Authorization header or including an admin token in the request body. At server starts-up, Kustvakt automatically generates an adminToken file at the root project folder, if it has not existed already.
Available in: full version
Method: POST
Service URL: root/admin/vc/load-cache
Header Parameter
Name | Required | Authentication scheme | Value |
---|---|---|---|
Authorization | yes | Bearer | OAuth2 access token |
Content-Type | yes | content type of the input data | application/x-www-form-urlencoded |
Request with admin token
Run the command on the root folder containing an adminToken file:
curl -v -H 'Content-Type: application/x-www-form-urlencoded' \
-d @adminToken \
'http://localhost:8089/api/v1.0/admin/vc/load-cache'
or describe an adminToken explicitly in the command:
curl -v -H 'Content-Type: application/x-www-form-urlencoded' \
-d 'token=Rn8zb30nkqVlHd_Wxt2DpE' \
'http://localhost:8089/api/v1.0/admin/vc/load-cache'
Request with cURL
curl -v -H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Authorization: Bearer f70p9lBCIufy_9LYEef2jQzJLlBMpc1egkv4dCBxcD3A'
-X POST \
'http://localhost:8089/api/v1.0/admin/vc/load-cache'
- Importing Kustvakt to Eclipse
- Installing Lombok
- Setting annotation processors
- Setting 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