@unicon/api-contracts
v1.0.17
Published
ijro api contracts
Downloads
3
Readme
api-contracts
Api contracts
Installation
$ npm i --save @unicon/api-contracts
Usage on Angular
import { Authorize } from "@unicon/api-contracts";
import { Component } from '@angular/core';
/**
* Authorize.apiName - API URL
* Authorize.RequestDto - Request Type
* Authorize.Response - Response Type
*/
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = Authorize.apiName;
request: Authorize.RequestDto = {
username: '',
password: ''
};
response: Authorize.Response = {
session_id: '',
access_token: '',
full_name: '',
user_id: ''
};
}