Skip to content

Lrmdom/webpackLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swagger-js-client

SwaggerJsClient - JavaScript client for swagger-js-client No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.0.0
  • Package version: 0.0.0
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install swagger-js-client --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 SwaggerJsClient = require("swagger-js-client");

var api = new SwaggerJsClient.AlertApi();
var id = "id_example"; // {String} Resource identifier

var callback = function (error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log("API called successfully.");
  }
};
api.deleteAlertItem(id, callback);

Documentation for API Endpoints

All URIs are relative to /

Class Method HTTP request Description
SwaggerJsClient.AlertApi deleteAlertItem DELETE /api/alerts/{id} Removes the Alert resource.
SwaggerJsClient.AlertApi getAlertCollection GET /api/alerts Retrieves the collection of Alert resources.
SwaggerJsClient.AlertApi getAlertItem GET /api/alerts/{id} Retrieves a Alert resource.
SwaggerJsClient.AlertApi patchAlertItem PATCH /api/alerts/{id} Updates the Alert resource.
SwaggerJsClient.AlertApi postAlertCollection POST /api/alerts Creates a Alert resource.
SwaggerJsClient.AlertApi putAlertItem PUT /api/alerts/{id} Replaces the Alert resource.
SwaggerJsClient.CasaApi deleteCasaItem DELETE /api/casas/{codCasa} Removes the Casa resource.
SwaggerJsClient.CasaApi getCasaCollection GET /api/casas Retrieves the collection of Casa resources.
SwaggerJsClient.CasaApi getCasaItem GET /api/casas/{codCasa} Retrieves a Casa resource.
SwaggerJsClient.CasaApi patchCasaItem PATCH /api/casas/{codCasa} Updates the Casa resource.
SwaggerJsClient.CasaApi postCasaCollection POST /api/casas Creates a Casa resource.
SwaggerJsClient.CasaApi putCasaItem PUT /api/casas/{codCasa} Replaces the Casa resource.
SwaggerJsClient.CasacancelissueApi deleteCasacancelissueItem DELETE /api/casacancelissues/{id} Removes the Casacancelissue resource.
SwaggerJsClient.CasacancelissueApi getCasacancelissueCollection GET /api/casacancelissues Retrieves the collection of Casacancelissue resources.
SwaggerJsClient.CasacancelissueApi getCasacancelissueItem GET /api/casacancelissues/{id} Retrieves a Casacancelissue resource.
SwaggerJsClient.CasacancelissueApi patchCasacancelissueItem PATCH /api/casacancelissues/{id} Updates the Casacancelissue resource.
SwaggerJsClient.CasacancelissueApi postCasacancelissueCollection POST /api/casacancelissues Creates a Casacancelissue resource.
SwaggerJsClient.CasacancelissueApi putCasacancelissueItem PUT /api/casacancelissues/{id} Replaces the Casacancelissue resource.
SwaggerJsClient.ClienteApi deleteClienteItem DELETE /api/clientes/{clienteid} Removes the Cliente resource.
SwaggerJsClient.ClienteApi getClienteCollection GET /api/clientes Retrieves the collection of Cliente resources.
SwaggerJsClient.ClienteApi getClienteItem GET /api/clientes/{clienteid} Retrieves a Cliente resource.
SwaggerJsClient.ClienteApi patchClienteItem PATCH /api/clientes/{clienteid} Updates the Cliente resource.
SwaggerJsClient.ClienteApi postClienteCollection POST /api/clientes Creates a Cliente resource.
SwaggerJsClient.ClienteApi putClienteItem PUT /api/clientes/{clienteid} Replaces the Cliente resource.
SwaggerJsClient.CompareApi deleteCompareItem DELETE /api/compares/{id} Removes the Compare resource.
SwaggerJsClient.CompareApi getCompareCollection GET /api/compares Retrieves the collection of Compare resources.
SwaggerJsClient.CompareApi getCompareItem GET /api/compares/{id} Retrieves a Compare resource.
SwaggerJsClient.CompareApi patchCompareItem PATCH /api/compares/{id} Updates the Compare resource.
SwaggerJsClient.CompareApi postCompareCollection POST /api/compares Creates a Compare resource.
SwaggerJsClient.CompareApi putCompareItem PUT /api/compares/{id} Replaces the Compare resource.
SwaggerJsClient.DestinoApi deleteDestinoItem DELETE /api/destinos/{idDestino} Removes the Destino resource.
SwaggerJsClient.DestinoApi getDestinoCollection GET /api/destinos Retrieves the collection of Destino resources.
SwaggerJsClient.DestinoApi getDestinoItem GET /api/destinos/{idDestino} Retrieves a Destino resource.
SwaggerJsClient.DestinoApi patchDestinoItem PATCH /api/destinos/{idDestino} Updates the Destino resource.
SwaggerJsClient.DestinoApi postDestinoCollection POST /api/destinos Creates a Destino resource.
SwaggerJsClient.DestinoApi putDestinoItem PUT /api/destinos/{idDestino} Replaces the Destino resource.
SwaggerJsClient.EstadiaMinimaApi deleteEstadiaMinimaItem DELETE /api/estadia_minimas/{id} Removes the EstadiaMinima resource.
SwaggerJsClient.EstadiaMinimaApi getEstadiaMinimaCollection GET /api/estadia_minimas Retrieves the collection of EstadiaMinima resources.
SwaggerJsClient.EstadiaMinimaApi getEstadiaMinimaItem GET /api/estadia_minimas/{id} Retrieves a EstadiaMinima resource.
SwaggerJsClient.EstadiaMinimaApi patchEstadiaMinimaItem PATCH /api/estadia_minimas/{id} Updates the EstadiaMinima resource.
SwaggerJsClient.EstadiaMinimaApi postEstadiaMinimaCollection POST /api/estadia_minimas Creates a EstadiaMinima resource.
SwaggerJsClient.EstadiaMinimaApi putEstadiaMinimaItem PUT /api/estadia_minimas/{id} Replaces the EstadiaMinima resource.
SwaggerJsClient.FeedbackApi deleteFeedbackItem DELETE /api/feedback/{id} Removes the Feedback resource.
SwaggerJsClient.FeedbackApi getFeedbackCollection GET /api/feedback Retrieves the collection of Feedback resources.
SwaggerJsClient.FeedbackApi getFeedbackItem GET /api/feedback/{id} Retrieves a Feedback resource.
SwaggerJsClient.FeedbackApi patchFeedbackItem PATCH /api/feedback/{id} Updates the Feedback resource.
SwaggerJsClient.FeedbackApi postFeedbackCollection POST /api/feedback Creates a Feedback resource.
SwaggerJsClient.FeedbackApi putFeedbackItem PUT /api/feedback/{id} Replaces the Feedback resource.
SwaggerJsClient.FeedbackcomentApi deleteFeedbackcomentItem DELETE /api/feedbackcoments/{id} Removes the Feedbackcoment resource.
SwaggerJsClient.FeedbackcomentApi getFeedbackcomentCollection GET /api/feedbackcoments Retrieves the collection of Feedbackcoment resources.
SwaggerJsClient.FeedbackcomentApi getFeedbackcomentItem GET /api/feedbackcoments/{id} Retrieves a Feedbackcoment resource.
SwaggerJsClient.FeedbackcomentApi patchFeedbackcomentItem PATCH /api/feedbackcoments/{id} Updates the Feedbackcoment resource.
SwaggerJsClient.FeedbackcomentApi postFeedbackcomentCollection POST /api/feedbackcoments Creates a Feedbackcoment resource.
SwaggerJsClient.FeedbackcomentApi putFeedbackcomentItem PUT /api/feedbackcoments/{id} Replaces the Feedbackcoment resource.
SwaggerJsClient.MessageApi deleteMessageItem DELETE /api/messages/{id} Removes the Message resource.
SwaggerJsClient.MessageApi getMessageCollection GET /api/messages Retrieves the collection of Message resources.
SwaggerJsClient.MessageApi getMessageItem GET /api/messages/{id} Retrieves a Message resource.
SwaggerJsClient.MessageApi patchMessageItem PATCH /api/messages/{id} Updates the Message resource.
SwaggerJsClient.MessageApi postMessageCollection POST /api/messages Creates a Message resource.
SwaggerJsClient.MessageApi putMessageItem PUT /api/messages/{id} Replaces the Message resource.
SwaggerJsClient.MylistApi deleteMylistItem DELETE /api/mylists/{id} Removes the Mylist resource.
SwaggerJsClient.MylistApi getMylistCollection GET /api/mylists Retrieves the collection of Mylist resources.
SwaggerJsClient.MylistApi getMylistItem GET /api/mylists/{id} Retrieves a Mylist resource.
SwaggerJsClient.MylistApi patchMylistItem PATCH /api/mylists/{id} Updates the Mylist resource.
SwaggerJsClient.MylistApi postMylistCollection POST /api/mylists Creates a Mylist resource.
SwaggerJsClient.MylistApi putMylistItem PUT /api/mylists/{id} Replaces the Mylist resource.
SwaggerJsClient.PeriodoApi deletePeriodoItem DELETE /api/periodos/{id} Removes the Periodo resource.
SwaggerJsClient.PeriodoApi getPeriodoCollection GET /api/periodos Retrieves the collection of Periodo resources.
SwaggerJsClient.PeriodoApi getPeriodoItem GET /api/periodos/{id} Retrieves a Periodo resource.
SwaggerJsClient.PeriodoApi patchPeriodoItem PATCH /api/periodos/{id} Updates the Periodo resource.
SwaggerJsClient.PeriodoApi postPeriodoCollection POST /api/periodos Creates a Periodo resource.
SwaggerJsClient.PeriodoApi putPeriodoItem PUT /api/periodos/{id} Replaces the Periodo resource.
SwaggerJsClient.PeriodoLongoApi deletePeriodoLongoItem DELETE /api/periodo_longos/{id} Removes the PeriodoLongo resource.
SwaggerJsClient.PeriodoLongoApi getPeriodoLongoCollection GET /api/periodo_longos Retrieves the collection of PeriodoLongo resources.
SwaggerJsClient.PeriodoLongoApi getPeriodoLongoItem GET /api/periodo_longos/{id} Retrieves a PeriodoLongo resource.
SwaggerJsClient.PeriodoLongoApi patchPeriodoLongoItem PATCH /api/periodo_longos/{id} Updates the PeriodoLongo resource.
SwaggerJsClient.PeriodoLongoApi postPeriodoLongoCollection POST /api/periodo_longos Creates a PeriodoLongo resource.
SwaggerJsClient.PeriodoLongoApi putPeriodoLongoItem PUT /api/periodo_longos/{id} Replaces the PeriodoLongo resource.
SwaggerJsClient.PrecoApi deletePrecoItem DELETE /api/precos/{id} Removes the Preco resource.
SwaggerJsClient.PrecoApi getPrecoCollection GET /api/precos Retrieves the collection of Preco resources.
SwaggerJsClient.PrecoApi getPrecoItem GET /api/precos/{id} Retrieves a Preco resource.
SwaggerJsClient.PrecoApi patchPrecoItem PATCH /api/precos/{id} Updates the Preco resource.
SwaggerJsClient.PrecoApi postPrecoCollection POST /api/precos Creates a Preco resource.
SwaggerJsClient.PrecoApi putPrecoItem PUT /api/precos/{id} Replaces the Preco resource.
SwaggerJsClient.PrereservaApi deletePrereservaItem DELETE /api/prereservas/{nPrereserva} Removes the Prereserva resource.
SwaggerJsClient.PrereservaApi getPrereservaCollection GET /api/prereservas Retrieves the collection of Prereserva resources.
SwaggerJsClient.PrereservaApi getPrereservaItem GET /api/prereservas/{nPrereserva} Retrieves a Prereserva resource.
SwaggerJsClient.PrereservaApi patchPrereservaItem PATCH /api/prereservas/{nPrereserva} Updates the Prereserva resource.
SwaggerJsClient.PrereservaApi postPrereservaCollection POST /api/prereservas Creates a Prereserva resource.
SwaggerJsClient.PrereservaApi putPrereservaItem PUT /api/prereservas/{nPrereserva} Replaces the Prereserva resource.
SwaggerJsClient.ProprietarioApi deleteProprietarioItem DELETE /api/proprietarios/{propid} Removes the Proprietario resource.
SwaggerJsClient.ProprietarioApi getProprietarioCollection GET /api/proprietarios Retrieves the collection of Proprietario resources.
SwaggerJsClient.ProprietarioApi getProprietarioItem GET /api/proprietarios/{propid} Retrieves a Proprietario resource.
SwaggerJsClient.ProprietarioApi patchProprietarioItem PATCH /api/proprietarios/{propid} Updates the Proprietario resource.
SwaggerJsClient.ProprietarioApi postProprietarioCollection POST /api/proprietarios Creates a Proprietario resource.
SwaggerJsClient.ProprietarioApi putProprietarioItem PUT /api/proprietarios/{propid} Replaces the Proprietario resource.
SwaggerJsClient.ProprietariocancelissueApi deleteProprietariocancelissueItem DELETE /api/proprietariocancelissues/{id} Removes the Proprietariocancelissue resource.
SwaggerJsClient.ProprietariocancelissueApi getProprietariocancelissueCollection GET /api/proprietariocancelissues Retrieves the collection of Proprietariocancelissue resources.
SwaggerJsClient.ProprietariocancelissueApi getProprietariocancelissueItem GET /api/proprietariocancelissues/{id} Retrieves a Proprietariocancelissue resource.
SwaggerJsClient.ProprietariocancelissueApi patchProprietariocancelissueItem PATCH /api/proprietariocancelissues/{id} Updates the Proprietariocancelissue resource.
SwaggerJsClient.ProprietariocancelissueApi postProprietariocancelissueCollection POST /api/proprietariocancelissues Creates a Proprietariocancelissue resource.
SwaggerJsClient.ProprietariocancelissueApi putProprietariocancelissueItem PUT /api/proprietariocancelissues/{id} Replaces the Proprietariocancelissue resource.
SwaggerJsClient.ReservaApi deleteReservaItem DELETE /api/reservas/{id} Removes the Reserva resource.
SwaggerJsClient.ReservaApi getReservaCollection GET /api/reservas Retrieves the collection of Reserva resources.
SwaggerJsClient.ReservaApi getReservaItem GET /api/reservas/{id} Retrieves a Reserva resource.
SwaggerJsClient.ReservaApi patchReservaItem PATCH /api/reservas/{id} Updates the Reserva resource.
SwaggerJsClient.ReservaApi postReservaCollection POST /api/reservas Creates a Reserva resource.
SwaggerJsClient.ReservaApi putReservaItem PUT /api/reservas/{id} Replaces the Reserva resource.
SwaggerJsClient.ReservaPaymentApi deleteReservaPaymentItem DELETE /api/reserva_payments/{id} Removes the ReservaPayment resource.
SwaggerJsClient.ReservaPaymentApi getReservaPaymentCollection GET /api/reserva_payments Retrieves the collection of ReservaPayment resources.
SwaggerJsClient.ReservaPaymentApi getReservaPaymentItem GET /api/reserva_payments/{id} Retrieves a ReservaPayment resource.
SwaggerJsClient.ReservaPaymentApi patchReservaPaymentItem PATCH /api/reserva_payments/{id} Updates the ReservaPayment resource.
SwaggerJsClient.ReservaPaymentApi postReservaPaymentCollection POST /api/reserva_payments Creates a ReservaPayment resource.
SwaggerJsClient.ReservaPaymentApi putReservaPaymentItem PUT /api/reserva_payments/{id} Replaces the ReservaPayment resource.
SwaggerJsClient.ReservaStateApi deleteReservaStateItem DELETE /api/reserva_states/{id} Removes the ReservaState resource.
SwaggerJsClient.ReservaStateApi getReservaStateCollection GET /api/reserva_states Retrieves the collection of ReservaState resources.
SwaggerJsClient.ReservaStateApi getReservaStateItem GET /api/reserva_states/{id} Retrieves a ReservaState resource.
SwaggerJsClient.ReservaStateApi patchReservaStateItem PATCH /api/reserva_states/{id} Updates the ReservaState resource.
SwaggerJsClient.ReservaStateApi postReservaStateCollection POST /api/reserva_states Creates a ReservaState resource.
SwaggerJsClient.ReservaStateApi putReservaStateItem PUT /api/reserva_states/{id} Replaces the ReservaState resource.
SwaggerJsClient.SourcemessageApi deleteSourcemessageItem DELETE /api/sourcemessages/{id} Removes the Sourcemessage resource.
SwaggerJsClient.SourcemessageApi getSourcemessageCollection GET /api/sourcemessages Retrieves the collection of Sourcemessage resources.
SwaggerJsClient.SourcemessageApi getSourcemessageItem GET /api/sourcemessages/{id} Retrieves a Sourcemessage resource.
SwaggerJsClient.SourcemessageApi patchSourcemessageItem PATCH /api/sourcemessages/{id} Updates the Sourcemessage resource.
SwaggerJsClient.SourcemessageApi postSourcemessageCollection POST /api/sourcemessages Creates a Sourcemessage resource.
SwaggerJsClient.SourcemessageApi putSourcemessageItem PUT /api/sourcemessages/{id} Replaces the Sourcemessage resource.
SwaggerJsClient.TipoApi deleteTipoItem DELETE /api/tipos/{idTipo} Removes the Tipo resource.
SwaggerJsClient.TipoApi getTipoCollection GET /api/tipos Retrieves the collection of Tipo resources.
SwaggerJsClient.TipoApi getTipoItem GET /api/tipos/{idTipo} Retrieves a Tipo resource.
SwaggerJsClient.TipoApi patchTipoItem PATCH /api/tipos/{idTipo} Updates the Tipo resource.
SwaggerJsClient.TipoApi postTipoCollection POST /api/tipos Creates a Tipo resource.
SwaggerJsClient.TipoApi putTipoItem PUT /api/tipos/{idTipo} Replaces the Tipo resource.
SwaggerJsClient.TipoAlojamentoApi deleteTipoAlojamentoItem DELETE /api/tipo_alojamentos/{idTipoAlojamento} Removes the TipoAlojamento resource.
SwaggerJsClient.TipoAlojamentoApi getTipoAlojamentoCollection GET /api/tipo_alojamentos Retrieves the collection of TipoAlojamento resources.
SwaggerJsClient.TipoAlojamentoApi getTipoAlojamentoItem GET /api/tipo_alojamentos/{idTipoAlojamento} Retrieves a TipoAlojamento resource.
SwaggerJsClient.TipoAlojamentoApi patchTipoAlojamentoItem PATCH /api/tipo_alojamentos/{idTipoAlojamento} Updates the TipoAlojamento resource.
SwaggerJsClient.TipoAlojamentoApi postTipoAlojamentoCollection POST /api/tipo_alojamentos Creates a TipoAlojamento resource.
SwaggerJsClient.TipoAlojamentoApi putTipoAlojamentoItem PUT /api/tipo_alojamentos/{idTipoAlojamento} Replaces the TipoAlojamento resource.
SwaggerJsClient.TipoPagamentoApi deleteTipoPagamentoItem DELETE /api/tipo_pagamentos/{id} Removes the TipoPagamento resource.
SwaggerJsClient.TipoPagamentoApi getTipoPagamentoCollection GET /api/tipo_pagamentos Retrieves the collection of TipoPagamento resources.
SwaggerJsClient.TipoPagamentoApi getTipoPagamentoItem GET /api/tipo_pagamentos/{id} Retrieves a TipoPagamento resource.
SwaggerJsClient.TipoPagamentoApi patchTipoPagamentoItem PATCH /api/tipo_pagamentos/{id} Updates the TipoPagamento resource.
SwaggerJsClient.TipoPagamentoApi postTipoPagamentoCollection POST /api/tipo_pagamentos Creates a TipoPagamento resource.
SwaggerJsClient.TipoPagamentoApi putTipoPagamentoItem PUT /api/tipo_pagamentos/{id} Replaces the TipoPagamento resource.
SwaggerJsClient.VisitaApi deleteVisitaItem DELETE /api/visitas/{id} Removes the Visita resource.
SwaggerJsClient.VisitaApi getVisitaCollection GET /api/visitas Retrieves the collection of Visita resources.
SwaggerJsClient.VisitaApi getVisitaItem GET /api/visitas/{id} Retrieves a Visita resource.
SwaggerJsClient.VisitaApi patchVisitaItem PATCH /api/visitas/{id} Updates the Visita resource.
SwaggerJsClient.VisitaApi postVisitaCollection POST /api/visitas Creates a Visita resource.
SwaggerJsClient.VisitaApi putVisitaItem PUT /api/visitas/{id} Replaces the Visita resource.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

About

just a repo to save webpack configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages