1.0.0 • Published 8 years ago

travel_conseriage v1.0.0

Weekly downloads
2
License
Unlicense
Repository
-
Last release
8 years ago

travel_conseriage

TravelConseriage - JavaScript client for travel_conseriage API for managing Travel Conceriage Service datasets. 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 travel_conseriage --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.

Getting Started

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

var TravelConseriage = require('travel_conseriage');

var api = new TravelConseriage.AgencyApi()

var body = new TravelConseriage.Agency(); // {Agency} Created Agency object


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

Documentation for API Endpoints

All URIs are relative to http://localhost:8080/tc

ClassMethodHTTP requestDescription
TravelConseriage.AgencyApicreateAgencyPOST /agencyCreate Agency
TravelConseriage.AgencyApigetAgenciesGET /agency/getAgencyReturns all agencies in the system
TravelConseriage.AgencyApigetAgencyByIdGET /agency/getAgencyByIdReturns an Agency for a given id
TravelConseriage.AgentApicreateAgentPOST /agentCreate Agent
TravelConseriage.AgentApicreateAgentsWithArrayInputPOST /agent/createWithArrayCreates list of agents with given input array
TravelConseriage.AgentApigetAgentsGET /agent/getAgentsReturns all agents in the system
TravelConseriage.AgentApigetagentByIdGET /agent/getAgentByIdReturns An Agent for a given id
TravelConseriage.AgentApiloginUserGET /agent/loginLogs user into the system
TravelConseriage.PackageApigetInventoryGET /package/inventoryReturns package inventories
TravelConseriage.UserApiaddUserPOST /userRegister a new user
TravelConseriage.UserApiupdateUserPUT /userUpdate an existing User

Documentation for Models

Documentation for Authorization

agent_auth

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: http://abc.com/oauth/dialog
  • Scopes:
    • write:packages: modify packages in your account
    • read:packages: read your packages

api_key

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