cors_lab05 v1.0.0
cors_lab05
CorsLab05 - JavaScript client for cors_lab05 No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: v1
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install cors_lab05 --save
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/cors_lab05 then install it via:
npm install YOUR_USERNAME/cors_lab05 --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Getting Started
Please follow the installation instruction and execute the following JS code:
var CorsLab05 = require('cors_lab05');
var api = new CorsLab05.AccountApi()
var model = new CorsLab05.AddExternalLoginBindingModel(); // {AddExternalLoginBindingModel}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.accountAddExternalLogin(model, callback);
Documentation for API Endpoints
All URIs are relative to http://corslab05fisli.azurewebsites.net
Class | Method | HTTP request | Description |
---|---|---|---|
CorsLab05.AccountApi | accountAddExternalLogin | POST /api/Account/AddExternalLogin | |
CorsLab05.AccountApi | accountChangePassword | POST /api/Account/ChangePassword | |
CorsLab05.AccountApi | accountGetExternalLogin | GET /api/Account/ExternalLogin | |
CorsLab05.AccountApi | accountGetExternalLogins | GET /api/Account/ExternalLogins | |
CorsLab05.AccountApi | accountGetManageInfo | GET /api/Account/ManageInfo | |
CorsLab05.AccountApi | accountGetUserInfo | GET /api/Account/UserInfo | |
CorsLab05.AccountApi | accountLogout | POST /api/Account/Logout | |
CorsLab05.AccountApi | accountRegister | POST /api/Account/Register | |
CorsLab05.AccountApi | accountRegisterExternal | POST /api/Account/RegisterExternal | |
CorsLab05.AccountApi | accountRemoveLogin | POST /api/Account/RemoveLogin | |
CorsLab05.AccountApi | accountSetPassword | POST /api/Account/SetPassword | |
CorsLab05.StudentsApi | studentsDeleteStudent | DELETE /api/Students/{id} | |
CorsLab05.StudentsApi | studentsGetStudent | GET /api/Students/{id} | |
CorsLab05.StudentsApi | studentsGetStudents | GET /api/Students | |
CorsLab05.StudentsApi | studentsPostStudent | POST /api/Students | |
CorsLab05.StudentsApi | studentsPutStudent | PUT /api/Students/{id} | |
CorsLab05.ValuesApi | valuesDelete | DELETE /api/Values/{id} | |
CorsLab05.ValuesApi | valuesGet | GET /api/Values | |
CorsLab05.ValuesApi | valuesGet_0 | GET /api/Values/{id} | |
CorsLab05.ValuesApi | valuesPost | POST /api/Values | |
CorsLab05.ValuesApi | valuesPut | PUT /api/Values/{id} |
Documentation for Models
- CorsLab05.AddExternalLoginBindingModel
- CorsLab05.ChangePasswordBindingModel
- CorsLab05.ExternalLoginViewModel
- CorsLab05.ManageInfoViewModel
- CorsLab05.RegisterBindingModel
- CorsLab05.RegisterExternalBindingModel
- CorsLab05.RemoveLoginBindingModel
- CorsLab05.SetPasswordBindingModel
- CorsLab05.Student
- CorsLab05.UserInfoViewModel
- CorsLab05.UserLoginInfoViewModel
Documentation for Authorization
All endpoints do not require authorization.
7 years ago