packages/api-client/AuthorizationRelatedInterfaceApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| login | POST /signIn | login |
| logout | GET /signOut | sign out |
| logout1 | POST /signOut | sign out |
| register | POST /register | register |
ResponseDataLoginResultVO login(loginRo)
description:verifyType,available values: password sms_code email_code
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AuthorizationRelatedInterfaceApi(configuration);
let body:.AuthorizationRelatedInterfaceApiLoginRequest = {
// LoginRo
loginRo: {
username: "13829291111 | [email protected]",
credential: "qwer1234 || 261527",
type: "password",
areaCode: "+86",
data: "FutureIsComing",
token: "this_is_token",
spaceId: "spcaq8UwsxjAc",
},
};
apiInstance.login(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| loginRo | LoginRo |
ResponseDataLoginResultVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataLogoutVO logout()
log out of current user
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AuthorizationRelatedInterfaceApi(configuration);
let body:any = {};
apiInstance.logout(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
ResponseDataLogoutVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataLogoutVO logout1()
log out of current user
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AuthorizationRelatedInterfaceApi(configuration);
let body:any = {};
apiInstance.logout1(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
ResponseDataLogoutVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataVoid register(registerRO)
serving for community edition
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AuthorizationRelatedInterfaceApi(configuration);
let body:.AuthorizationRelatedInterfaceApiRegisterRequest = {
// RegisterRO
registerRO: {
username: "[email protected]",
credential: "qwer1234 || 261527",
},
};
apiInstance.register(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| registerRO | RegisterRO |
ResponseDataVoid
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]