g2-api-toffolo
v1.0.2
Published
API do G2s e Portal do aluno para Aplicativos
Downloads
2
Readme
portal/g2-api
PortalG2Api - JavaScript client for portal/g2-api API do G2s e Portal do aluno para Aplicativos This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2016-05-20T12:32:47.154Z
- Build package: class 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 portal/g2-api --save
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/portal/g2-api then install it via:
npm install YOUR_USERNAME/portal/g2-api --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 PortalG2Api = require('portal/g2-api');
var api = new PortalG2Api.AuthApi()
var user = new PortalG2Api.AuthUser(); // {AuthUser}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.loginAction(user, callback);
Documentation for API Endpoints
All URIs are relative to http://dev13g2.ead1.net/app-api
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- PortalG2Api.AuthApi | loginAction | POST /auth/login | Loga o Usu\u00E1rio no sistema PortalG2Api.AuthApi | logoutAction | GET /auth/logout | Faz o logout do Usu\u00E1rio no sistema PortalG2Api.MensagemagendamentoApi | getAll | GET /mensagem-agendamento | Retorna todos os Usu\u00E1rios PortalG2Api.UsuarioApi | callDelete | DELETE /usuario/delete/id/{id_usuario} | Exclui um Usu\u00E1rio da tabela tb_usuario baseado no id_usuario PortalG2Api.UsuarioApi | create | POST /usuario/create | Insere um novo registro na tabela tb_usuario PortalG2Api.UsuarioApi | get | GET /usuario/get/id/{id_usuario} | Retorna um registro da tabela tb_usuario baseado no id_usuario PortalG2Api.UsuarioApi | getAll | GET /usuario | Retorna todos os Usu\u00E1rios PortalG2Api.UsuarioApi | paging | GET /usuario/paging | Retorna os Usu\u00E1rios paginados PortalG2Api.UsuarioApi | update | PUT /usuario/update/id/{id_usuario} | Atualiza o registro do Usu\u00E1rio na tabela tb_usuario PortalG2Api.UsuariodeviceApi | callDelete | DELETE /usuario-device/delete/st_key/{st_key}/id_usuario/{id_usuario} | Exclui um registroo da tabela tb_usuariodevice baseado no id_usuario PortalG2Api.UsuariodeviceApi | create | POST /usuario-device/create | Insere um novo registro na tabela tb_usuariodevice
Documentation for Models
- PortalG2Api.AuthResponse
- PortalG2Api.AuthUser
- PortalG2Api.Error
- PortalG2Api.Pagination
- PortalG2Api.User
- PortalG2Api.Usuario
- PortalG2Api.UsuarioDevice
- PortalG2Api.UsuarioPagination
- PortalG2Api.VwEnviarMensagemAluno
Documentation for Authorization
All endpoints do not require authorization.