Kali-Server provides a RESTful API centralizing SKU allocation and management for web-applications.
- kali-client The official Symfony bundle kali client
- API doc
- Commands
"https://{projectDomain}/api"
"https://{projectDomain}/doc"
Where possible, API strives to use appropriate HTTP verbs for each action.
Verb | Description |
---|---|
GET | Used for retrieving sku resources. |
POST | Used for creating sku resources. |
PUT | Used for updating sku resources. |
DELETE | Used for deleting sku resources. |
Kali server use a strict Oauth2 'client_credentials' authentication. You have to generate a client to recieve a public and secret key to request a valid token to fetch the API. This token expires after 1 hour by default, so you'll have to request another one.
GET https://{projectDomain}/oauth/v2/token?client_id={your public key}&client_secret={your secret key}&grant_type=client_credentials
{
"access_token": "{your access token}",
"expires_in": 3600,
"token_type": "bearer",
"scope": null
}
POST https://{projectDomain}/api
Name | Type | Description |
---|---|---|
Authorization | string | 'Bearer {the access token }' |
curl -H "Authorization: Bearer {access_token}" https://{projectDomain}/api