1.0.0 • Published 6 years ago

plataforma_de_aprendizagem_senac v1.0.0

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

plataforma_de_aprendizagem_senac

PlataformaDeAprendizagemSenac - JavaScript client for plataforma_de_aprendizagem_senac API responsável por todo o gerenciamento das informações vinculadas aos cursos e roteiros de apredizagem. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • 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 plataforma_de_aprendizagem_senac --save

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/plataforma_de_aprendizagem_senac then install it via:

    npm install YOUR_USERNAME/plataforma_de_aprendizagem_senac --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.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var PlataformaDeAprendizagemSenac = require('plataforma_de_aprendizagem_senac');

var defaultClient = PlataformaDeAprendizagemSenac.ApiClient.instance;

// Configure OAuth2 access token for authorization: learning_auth
var learning_auth = defaultClient.authentications['learning_auth'];
learning_auth.accessToken = "YOUR ACCESS TOKEN"

var api = new PlataformaDeAprendizagemSenac.LearningadminApi()

var body = new PlataformaDeAprendizagemSenac.Curso(); // {Curso} objeto de curso necessário para ser adicionado na pla plataforma de aprendizagem


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addCurso(body, callback);

Documentation for API Endpoints

All URIs are relative to https://virtserver.swaggerhub.com/Abadio/Learning_Senac/1.0.0

ClassMethodHTTP requestDescription
PlataformaDeAprendizagemSenac.LearningadminApiaddCursoPOST /cursoCriar um curso na plataforma
PlataformaDeAprendizagemSenac.LearningadminApifindCursosByStatusGET /curso/findByStatusLocalizar cursos por status
PlataformaDeAprendizagemSenac.LearningadminApiupdateCursoPUT /cursoAtualizar um curso existente

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header

learning_auth