plataforma_de_aprendizagem_senac
v1.0.0
Published
API_responsvel_por_todo_o_gerenciamento_das_informaes_vinculadas_aos_cursos_e_roteiros_de_apredizagem_
Downloads
3
Readme
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
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- PlataformaDeAprendizagemSenac.LearningadminApi | addCurso | POST /curso | Criar um curso na plataforma PlataformaDeAprendizagemSenac.LearningadminApi | findCursosByStatus | GET /curso/findByStatus | Localizar cursos por status PlataformaDeAprendizagemSenac.LearningadminApi | updateCurso | PUT /curso | Atualizar 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
- Type: OAuth
- Flow: implicit
- Authorization URL: http://petstore.swagger.io/oauth/dialog
- Scopes:
- write:learning: modificar conta de usuário
- read:learning: ler usuario