1.0.2 • Published 8 years ago

g2-api-toffolo v1.0.2

Weekly downloads
-
License
Apache 2.0
Repository
-
Last release
8 years ago

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

ClassMethodHTTP requestDescription
PortalG2Api.AuthApiloginActionPOST /auth/loginLoga o Usu\u00E1rio no sistema
PortalG2Api.AuthApilogoutActionGET /auth/logoutFaz o logout do Usu\u00E1rio no sistema
PortalG2Api.MensagemagendamentoApigetAllGET /mensagem-agendamentoRetorna todos os Usu\u00E1rios
PortalG2Api.UsuarioApicallDeleteDELETE /usuario/delete/id/{id_usuario}Exclui um Usu\u00E1rio da tabela tb_usuario baseado no id_usuario
PortalG2Api.UsuarioApicreatePOST /usuario/createInsere um novo registro na tabela tb_usuario
PortalG2Api.UsuarioApigetGET /usuario/get/id/{id_usuario}Retorna um registro da tabela tb_usuario baseado no id_usuario
PortalG2Api.UsuarioApigetAllGET /usuarioRetorna todos os Usu\u00E1rios
PortalG2Api.UsuarioApipagingGET /usuario/pagingRetorna os Usu\u00E1rios paginados
PortalG2Api.UsuarioApiupdatePUT /usuario/update/id/{id_usuario}Atualiza o registro do Usu\u00E1rio na tabela tb_usuario
PortalG2Api.UsuariodeviceApicallDeleteDELETE /usuario-device/delete/st_key/{st_key}/id_usuario/{id_usuario}Exclui um registroo da tabela tb_usuariodevice baseado no id_usuario
PortalG2Api.UsuariodeviceApicreatePOST /usuario-device/createInsere um novo registro na tabela tb_usuariodevice

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.