0.0.7 • Published 7 years ago

wayshop_api v0.0.7

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
7 years ago

wayshop_api

WayshopApi - JavaScript client for wayshop_api wayshop API documentation This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.0.1
  • Package version: 0.0.1
  • Build date: 2016-11-25T15:17:04.012+01:00
  • Build package: class 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 wayshop_api --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 WayshopApi = require('wayshop_api');

var defaultClient = WayshopApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: wayshop_auth
var wayshop_auth = defaultClient.authentications['wayshop_auth'];
wayshop_auth.accessToken = "YOUR ACCESS TOKEN"

var api = new WayshopApi.AccountresourceApi()

var key = "key_example"; // {String} key


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.activateAccountUsingGET(key, callback);

Documentation for API Endpoints

All URIs are relative to https://localhost:8080/

ClassMethodHTTP requestDescription
WayshopApi.AccountresourceApiactivateAccountUsingGETGET /api/activateactivateAccount
WayshopApi.AccountresourceApichangePasswordUsingPOSTPOST /api/account/change_passwordchangePassword
WayshopApi.AccountresourceApifinishPasswordResetUsingPOSTPOST /api/account/reset_password/finishfinishPasswordReset
WayshopApi.AccountresourceApigetAccountUsingGETGET /api/accountgetAccount
WayshopApi.AccountresourceApiisAuthenticatedUsingGETGET /api/authenticateisAuthenticated
WayshopApi.AccountresourceApiregisterAccountUsingPOSTPOST /api/registerregisterAccount
WayshopApi.AccountresourceApirequestPasswordResetUsingPOSTPOST /api/account/reset_password/initrequestPasswordReset
WayshopApi.AccountresourceApisaveAccountUsingPOSTPOST /api/accountsaveAccount
WayshopApi.CartresourceApicheckOutCartUsingPOSTPOST /api/carts/{id}/checkoutcheckOutCart
WayshopApi.CartresourceApideleteCartUsingDELETEDELETE /api/carts/{id}deleteCart
WayshopApi.CartresourceApigetCartUsingGETGET /api/carts/{id}Return a cart by id
WayshopApi.CartresourceApigetManadatoryTravelerDataUsingGETGET /api/carts/{id}/travelerDataReturn a list of mandatory fields for each traveler
WayshopApi.CartresourceApiputTravelerUsingPOSTPOST /api/carts/{id}/traveler/{travelerId}putTraveler
WayshopApi.CartresourceApiremoveCartItemUsingDELETEDELETE /api/carts/{id}/cartItems/{cartItemId}removeCartItem
WayshopApi.CartresourceApiremoveTravelerUsingDELETEDELETE /api/carts/{id}/travelers/{travelerId}removeTraveler
WayshopApi.CartresourceApisetCustomerUsingPOSTPOST /api/carts/{id}/customer/{customerReference}setCustomer
WayshopApi.OrderresourceApigetOrderByCustomerReferenceUsingGETGET /api/orders/Get order by customer reference
WayshopApi.OrderresourceApigetOrderByIdUsingGETGET /api/orders/{id}getOrderById
WayshopApi.OrderresourceApigetOrderByOrderReferenceUsingGETGET /api/orders/reference/{id}Get order by order reference
WayshopApi.OrderresourceApimakeOrderUsingPOSTPOST /api/orders/makeOrder
WayshopApi.ProfileinforesourceApigetActiveProfilesUsingGETGET /api/profile-infogetActiveProfiles
WayshopApi.UserjwtcontrollerApiauthorizeUsingPOSTPOST /api/authenticateauthorize
WayshopApi.UserresourceApicreateUserUsingPOSTPOST /api/userscreateUser
WayshopApi.UserresourceApideleteUserUsingDELETEDELETE /api/users/{login}deleteUser
WayshopApi.UserresourceApigetAllUsersUsingGETGET /api/usersgetAllUsers
WayshopApi.UserresourceApigetUserUsingGETGET /api/users/{login}getUser
WayshopApi.UserresourceApiupdateUserUsingPUTPUT /api/usersupdateUser

Documentation for Models

Documentation for Authorization

wayshop_auth

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: /api/authenticate
  • Scopes:
    • global: global
0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago