1.0.11 • Published 1 year ago

swagger_gestion_crm___open_api_30 v1.0.11

Weekly downloads
-
License
Unlicense
Repository
github
Last release
1 year ago

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

ClassMethodHTTP requestDescription
SwaggerGestionCrmOpenApi30.ContactoApiactualizarContactoPUT /contacto/{id}Actualizar contacto
SwaggerGestionCrmOpenApi30.ContactoApiborrarContactoDELETE /contacto/{id}Borrar un contacto
SwaggerGestionCrmOpenApi30.ContactoApicrearContactoPOST /contactoAñadir un nuevo contacto
SwaggerGestionCrmOpenApi30.ContactoApiobtenerContactosGET /contactoObtener todos los contactos
SwaggerGestionCrmOpenApi30.EmpresaApiactualizarEmpresaPUT /empresa/{id}Actualizar empresa
SwaggerGestionCrmOpenApi30.EmpresaApiborrarEmpresaDELETE /empresa/{id}Borrar una empresa
SwaggerGestionCrmOpenApi30.EmpresaApicrearEmpresaPOST /empresaAñadir una nueva empresa
SwaggerGestionCrmOpenApi30.EmpresaApiobtenerEmpresasGET /empresaObtener todas las empresas
SwaggerGestionCrmOpenApi30.PersonaApiactualizarPersonaPUT /persona/{id}Actualizar persona
SwaggerGestionCrmOpenApi30.PersonaApiborrarPersonaDELETE /persona/{id}Borrar una persona
SwaggerGestionCrmOpenApi30.PersonaApicrearPersonaPOST /personaAñadir una nueva persona
SwaggerGestionCrmOpenApi30.PersonaApiobtenerPersonasGET /personaObtener todas las personas

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.0.11

1 year ago