Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Latest commit

 

History

History
59 lines (39 loc) · 1.36 KB

TokenAuthApi.md

File metadata and controls

59 lines (39 loc) · 1.36 KB

TokenAuthApi

All URIs are relative to https://de.openlegaldata.io/api

Method HTTP request Description
tokenAuthCreate POST /token-auth/

tokenAuthCreate

tokenAuthCreate()

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.TokenAuthApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");

TokenAuthApi apiInstance = new TokenAuthApi();
try {
    apiInstance.tokenAuthCreate();
} catch (ApiException e) {
    System.err.println("Exception when calling TokenAuthApi#tokenAuthCreate");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json