You can access Dotkernel API documentation by importing the provided collection and environment files into Postman.
At this point, we assume you already have an API client installed (Postman or Bruno). The following steps will be performed in the API client.
- Click File -> Import -> Upload Files.
- Navigate to the documentation directory.
- Select both Dotkernel_API.postman_collection.json and Dotkernel_API.postman_environment.json.
- Click Import.
- Open the
My Workspacedropdown and selectImport workspace. - Either click-and-drag the Dotkernel_API_Bruno.zip file over the form or navigate to it via the
choose a filelink. - Click the
Importbutton.
Bruno also supports the Postman files we used for the Postman import. If you have already imported the collection using the
.zipfile, you can skip this step.
Alternatively import the collection by following these steps:
- Click on
+next toCollectionand selectImport Collection. - Import Dotkernel_API.postman_collection.json to save the endpoints.
- Select the new collection, then click on
0 collection environments. - Either click-and-drag the Dotkernel_API.postman_environment.json file over the form or navigate to it via the
Import your environmentslink to save it to the collection.
If the import process completed successfully, you should have:
- A new collection (
Dotkernel_API) containing the documentation of all Dotkernel API endpoints. - A new environment (
Dotkernel_API) with the Application URL and OAuth2 tokens (empty by default, then overwritten by the API client).
The environment contains a variable, called
APPLICATION_URLset tohttp://api.dotkernel.localhostby default. If your application runs on a different URL/port (virtualhost), modify this variable accordingly.
Dotkernel API Endpoints are secured with OAuth2.
Calling an endpoint must include an access token sent via the Authorization header (see the Authorization or Auth tab in the collection).
- Right-click on the parent directory you want to create the request inside, then click
Add Request(orNew Request). - Enter the request name and the description, if available.
- Select the request method:
DELETEif you are deleting an item.GETif you are viewing an item or a list of items.PATCHif you are (partially) updating an item.PUTdepending on if it exists or not, update or create an item.POSTif you are creating an item.
- Enter request URL (eg:
{{APPLICATION_URL}}/example): you can use the existingAPPLICATION_URLenvironment variable by placing it between double curly braces. - If needed, add query parameters (
Paramstab). - Select body (
Bodytab) format based on the data your endpoint expects:- Use
noneorno bodyif no data will be sent to this endpoint. - Use
form-dataorMultipart Formif besides form data, this endpoint accepts file attachments as well. - Use
raw, thenJSONfor creating/updating items in a JSON format.
- Use
- Click
Sendto send the request.
The Authorization header will be included automatically for new requests (under Authorization tab: Type is set to Inherit auth from parent).
If your request needs to be public (accessible by guest users), you need to set Type to No Auth.