swagger_gestion_crm_open_api_30_3
v1.0.11
Published
Especificacin_OpenAPI_3_0__de_la_aplicacin_de_gestin_CRM_a_medida_de_MetaEnlace_
Downloads
3
Readme
swagger_gestion_crm___open_api_30
SwaggerGestionCrmOpenApi30 - JavaScript client for swagger_gestion_crm___open_api_30 Especificación OpenAPI 3.0 de la aplicación de gestión CRM a medida de MetaEnlace. This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.11
- Package version: 1.0.11
- Build package: io.swagger.codegen.v3.generators.javascript.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 swagger_gestion_crm___open_api_30 --save
git
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --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 SwaggerGestionCrmOpenApi30 = require('swagger_gestion_crm___open_api_30');
var api = new SwaggerGestionCrmOpenApi30.ContactoApi()
var id = 789; // {Number} ID del contacto a actualizar
var opts = {
'body': new SwaggerGestionCrmOpenApi30.ContactoUpdateDTO() // {ContactoUpdateDTO} Actualizar un contacto existente
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.actualizarContacto(id, opts, callback);
Documentation for API Endpoints
All URIs are relative to http://localhost:8080/api
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- SwaggerGestionCrmOpenApi30.ContactoApi | actualizarContacto | PUT /contacto/{id} | Actualizar contacto SwaggerGestionCrmOpenApi30.ContactoApi | borrarContacto | DELETE /contacto/{id} | Borrar un contacto SwaggerGestionCrmOpenApi30.ContactoApi | crearContacto | POST /contacto | Añadir un nuevo contacto SwaggerGestionCrmOpenApi30.ContactoApi | obtenerContactos | GET /contacto | Obtener todos los contactos SwaggerGestionCrmOpenApi30.EmpresaApi | actualizarEmpresa | PUT /empresa/{id} | Actualizar empresa SwaggerGestionCrmOpenApi30.EmpresaApi | borrarEmpresa | DELETE /empresa/{id} | Borrar una empresa SwaggerGestionCrmOpenApi30.EmpresaApi | crearEmpresa | POST /empresa | Añadir una nueva empresa SwaggerGestionCrmOpenApi30.EmpresaApi | obtenerEmpresas | GET /empresa | Obtener todas las empresas SwaggerGestionCrmOpenApi30.PersonaApi | actualizarPersona | PUT /persona/{id} | Actualizar persona SwaggerGestionCrmOpenApi30.PersonaApi | borrarPersona | DELETE /persona/{id} | Borrar una persona SwaggerGestionCrmOpenApi30.PersonaApi | crearPersona | POST /persona | Añadir una nueva persona SwaggerGestionCrmOpenApi30.PersonaApi | obtenerPersonas | GET /persona | Obtener todas las personas
Documentation for Models
- SwaggerGestionCrmOpenApi30.ContactoCreateDTO
- SwaggerGestionCrmOpenApi30.ContactoResponseDTO
- SwaggerGestionCrmOpenApi30.ContactoResponseDTOEmpresa
- SwaggerGestionCrmOpenApi30.ContactoResponseDTOPersona
- SwaggerGestionCrmOpenApi30.ContactoUpdateDTO
- SwaggerGestionCrmOpenApi30.EmpresaCreateDTO
- SwaggerGestionCrmOpenApi30.EmpresaResponseDTO
- SwaggerGestionCrmOpenApi30.EmpresaUpdateDTO
- SwaggerGestionCrmOpenApi30.PersonaCreateDTO
- SwaggerGestionCrmOpenApi30.PersonaResponseDTO
- SwaggerGestionCrmOpenApi30.PersonaResponseDTOEmpresa
- SwaggerGestionCrmOpenApi30.PersonaUpdateDTO
Documentation for Authorization
All endpoints do not require authorization.