wayshop_api v0.0.7
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/
Class | Method | HTTP request | Description |
---|---|---|---|
WayshopApi.AccountresourceApi | activateAccountUsingGET | GET /api/activate | activateAccount |
WayshopApi.AccountresourceApi | changePasswordUsingPOST | POST /api/account/change_password | changePassword |
WayshopApi.AccountresourceApi | finishPasswordResetUsingPOST | POST /api/account/reset_password/finish | finishPasswordReset |
WayshopApi.AccountresourceApi | getAccountUsingGET | GET /api/account | getAccount |
WayshopApi.AccountresourceApi | isAuthenticatedUsingGET | GET /api/authenticate | isAuthenticated |
WayshopApi.AccountresourceApi | registerAccountUsingPOST | POST /api/register | registerAccount |
WayshopApi.AccountresourceApi | requestPasswordResetUsingPOST | POST /api/account/reset_password/init | requestPasswordReset |
WayshopApi.AccountresourceApi | saveAccountUsingPOST | POST /api/account | saveAccount |
WayshopApi.CartresourceApi | checkOutCartUsingPOST | POST /api/carts/{id}/checkout | checkOutCart |
WayshopApi.CartresourceApi | deleteCartUsingDELETE | DELETE /api/carts/{id} | deleteCart |
WayshopApi.CartresourceApi | getCartUsingGET | GET /api/carts/{id} | Return a cart by id |
WayshopApi.CartresourceApi | getManadatoryTravelerDataUsingGET | GET /api/carts/{id}/travelerData | Return a list of mandatory fields for each traveler |
WayshopApi.CartresourceApi | putTravelerUsingPOST | POST /api/carts/{id}/traveler/{travelerId} | putTraveler |
WayshopApi.CartresourceApi | removeCartItemUsingDELETE | DELETE /api/carts/{id}/cartItems/{cartItemId} | removeCartItem |
WayshopApi.CartresourceApi | removeTravelerUsingDELETE | DELETE /api/carts/{id}/travelers/{travelerId} | removeTraveler |
WayshopApi.CartresourceApi | setCustomerUsingPOST | POST /api/carts/{id}/customer/{customerReference} | setCustomer |
WayshopApi.OrderresourceApi | getOrderByCustomerReferenceUsingGET | GET /api/orders/ | Get order by customer reference |
WayshopApi.OrderresourceApi | getOrderByIdUsingGET | GET /api/orders/{id} | getOrderById |
WayshopApi.OrderresourceApi | getOrderByOrderReferenceUsingGET | GET /api/orders/reference/{id} | Get order by order reference |
WayshopApi.OrderresourceApi | makeOrderUsingPOST | POST /api/orders/ | makeOrder |
WayshopApi.ProfileinforesourceApi | getActiveProfilesUsingGET | GET /api/profile-info | getActiveProfiles |
WayshopApi.UserjwtcontrollerApi | authorizeUsingPOST | POST /api/authenticate | authorize |
WayshopApi.UserresourceApi | createUserUsingPOST | POST /api/users | createUser |
WayshopApi.UserresourceApi | deleteUserUsingDELETE | DELETE /api/users/{login} | deleteUser |
WayshopApi.UserresourceApi | getAllUsersUsingGET | GET /api/users | getAllUsers |
WayshopApi.UserresourceApi | getUserUsingGET | GET /api/users/{login} | getUser |
WayshopApi.UserresourceApi | updateUserUsingPUT | PUT /api/users | updateUser |
Documentation for Models
- WayshopApi.Address
- WayshopApi.Cart
- WayshopApi.CartFare
- WayshopApi.CartItem
- WayshopApi.CartItemDetail
- WayshopApi.ChargeItem
- WayshopApi.CheckedOutCart
- WayshopApi.Customer
- WayshopApi.KeyAndPasswordVM
- WayshopApi.Location
- WayshopApi.LoginVM
- WayshopApi.ManagedUserVM
- WayshopApi.Order
- WayshopApi.OrderItem
- WayshopApi.OrderItemDetail
- WayshopApi.OrderItemFare
- WayshopApi.Payment
- WayshopApi.PaymentAuthorization
- WayshopApi.PaymentOutcome
- WayshopApi.Product
- WayshopApi.ProfileInfoResponse
- WayshopApi.SupplierProductIdentifier
- WayshopApi.SupplierReservationIdentifier
- WayshopApi.Ticket
- WayshopApi.TicketHolder
- WayshopApi.Traveler
- WayshopApi.UserDTO
Documentation for Authorization
wayshop_auth
- Type: OAuth
- Flow: implicit
- Authorization URL: /api/authenticate
- Scopes:
- global: global