All URIs are relative to http://localhost:5000
| Method | HTTP request | Description |
|---|---|---|
| compareQwicBike | POST /{version}/bike/compare | |
| createQwicBike | POST /{version}/bike/qwic | |
| getQwicBikeModel | GET /{version}/bike_model/qwic/{vin} |
CompareQwicBikeResponse compareQwicBike(version, body)
Compare a QWIC bike, it will check whether the bike's MID meets the usage regulations. - `spec_id`: spec of bike. if didn't have spec_id, could be null. - `parts`: bike equipped part specs. only allow parts produced by Hyena or Brose. - There are 5 types: - Type 1: No changed any part specs - Type 2: New bike or change all part specs - Type 3: Have changes part specs - Type 4: Different bike of components - Type 5: Wrong part number
var Api = require('api');
var defaultClient = Api.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Api.QwicBikeApi();
var version = "version_example"; // String | api version
var body = new Api.CompareBikeRequest(); // CompareBikeRequest | compare qwic bike body parameters
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.compareQwicBike(version, body, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| version | String | api version | |
| body | CompareBikeRequest | compare qwic bike body parameters |
- Content-Type: Not defined
- Accept: /, application/json
CreateBikeResponse createQwicBike(version, body)
Create a QWIC bike. - `vin`: frame number of bike. - `spec_id`: spec of bike. if didn't have spec_id, could be null. - `parts`: bike equipped part specs. only allow parts produced by Hyena or Brose.
var Api = require('api');
var defaultClient = Api.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Api.QwicBikeApi();
var version = "version_example"; // String | api version
var body = new Api.CreateBikeRequest(); // CreateBikeRequest | create qwic bike body parameters
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createQwicBike(version, body, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| version | String | api version | |
| body | CreateBikeRequest | create qwic bike body parameters |
- Content-Type: Not defined
- Accept: /, application/json
QwicBikeModelResponse getQwicBikeModel(version, vin)
Get a QWIC's bike model from QWIC API
var Api = require('api');
var defaultClient = Api.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Api.QwicBikeApi();
var version = "version_example"; // String | api version
var vin = "vin_example"; // String | frame number
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getQwicBikeModel(version, vin, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| version | String | api version | |
| vin | String | frame number |
- Content-Type: Not defined
- Accept: /, application/json