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

Latest commit

 

History

History
92 lines (63 loc) · 1.95 KB

AuthenticationApi.md

File metadata and controls

92 lines (63 loc) · 1.95 KB

AuthenticationApi

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

Method HTTP request Description
authGet GET /auth Authenticate a user by giving an Authorization Grant.
profileGet GET /profile Returns the user's profile

authGet

Object authGet(grant)

Authenticate a user by giving an Authorization Grant.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.AuthenticationApi;


AuthenticationApi apiInstance = new AuthenticationApi();
String grant = "grant_example"; // String | 
try {
    Object result = apiInstance.authGet(grant);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling AuthenticationApi#authGet");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
grant String

Return type

Object

Authorization

No authorization required

HTTP request headers

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

profileGet

Object profileGet()

Returns the user's profile

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.AuthenticationApi;


AuthenticationApi apiInstance = new AuthenticationApi();
try {
    Object result = apiInstance.profileGet();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling AuthenticationApi#profileGet");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

Object

Authorization

No authorization required

HTTP request headers

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