Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Latest commit

 

History

History
171 lines (122 loc) · 4.4 KB

UsersApi.md

File metadata and controls

171 lines (122 loc) · 4.4 KB

UsersApi

All URIs are relative to http://localhost/api

Method HTTP request Description
usersIdGet GET /users/{id}
usersIdTokensGet GET /users/{id}/tokens
usersIdTokensNewPost POST /users/{id}/tokens/new

usersIdGet

Object usersIdGet(id)

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.UsersApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

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

UsersApi apiInstance = new UsersApi();
Integer id = 56; // Integer | 
try {
    Object result = apiInstance.usersIdGet(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UsersApi#usersIdGet");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Integer

Return type

Object

Authorization

bearer

HTTP request headers

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

usersIdTokensGet

Object usersIdTokensGet(id)

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.UsersApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

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

UsersApi apiInstance = new UsersApi();
Integer id = 56; // Integer | 
try {
    Object result = apiInstance.usersIdTokensGet(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UsersApi#usersIdTokensGet");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Integer

Return type

Object

Authorization

bearer

HTTP request headers

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

usersIdTokensNewPost

usersIdTokensNewPost(id, createSubSystemPermissionDto)

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.UsersApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

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

UsersApi apiInstance = new UsersApi();
Integer id = 56; // Integer | 
CreateSubSystemPermissionDto createSubSystemPermissionDto = new CreateSubSystemPermissionDto(); // CreateSubSystemPermissionDto | 
try {
    apiInstance.usersIdTokensNewPost(id, createSubSystemPermissionDto);
} catch (ApiException e) {
    System.err.println("Exception when calling UsersApi#usersIdTokensNewPost");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Integer
createSubSystemPermissionDto CreateSubSystemPermissionDto

Return type

null (empty response body)

Authorization

bearer

HTTP request headers

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