Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 1.62 KB

AuthApi.md

File metadata and controls

68 lines (42 loc) · 1.62 KB

.AuthApi

All URIs are relative to https://roketo-test-api.herokuapp.com

Method HTTP request Description
login POST /auth/login

login

AccessTokenDto login(loginDto)

Example

import {  } from '@roketo/api-client';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .AuthApi(configuration);

let body:.AuthApiLoginRequest = {
  // LoginDto
  loginDto: {
    accountId: "accountId_example",
    timestamp: 3.14,
    signature: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63],
  },
};

apiInstance.login(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

Name Type Description Notes
loginDto LoginDto

Return type

AccessTokenDto

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 Issues JWT for accessing all the other endpoints -
400 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]