-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from checkr/zz/upgrade-jsflagr
Upgrade flagr swagger API
- Loading branch information
Showing
47 changed files
with
429 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Flagr.ExportApi | ||
|
||
All URIs are relative to *http://localhost/api/v1* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**getExportSQLite**](ExportApi.md#getExportSQLite) | **GET** /export/sqlite | | ||
|
||
|
||
<a name="getExportSQLite"></a> | ||
# **getExportSQLite** | ||
> File getExportSQLite() | ||
|
||
|
||
Export sqlite3 format of the db dump, which is converted from the main database. | ||
|
||
### Example | ||
```javascript | ||
var Flagr = require('flagr'); | ||
|
||
var apiInstance = new Flagr.ExportApi(); | ||
|
||
var callback = function(error, data, response) { | ||
if (error) { | ||
console.error(error); | ||
} else { | ||
console.log('API called successfully. Returned data: ' + data); | ||
} | ||
}; | ||
apiInstance.getExportSQLite(callback); | ||
``` | ||
|
||
### Parameters | ||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
**File** | ||
|
||
### Authorization | ||
|
||
No authorization required | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/octet-stream | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/** | ||
* Flagr | ||
* Flagr is a feature flagging, A/B testing and dynamic configuration microservice | ||
* | ||
* OpenAPI spec version: 1.0.10 | ||
* | ||
* NOTE: This class is auto generated by the swagger code generator program. | ||
* https://github.com/swagger-api/swagger-codegen.git | ||
* | ||
* Swagger Codegen version: 2.4.0-SNAPSHOT | ||
* | ||
* Do not edit the class manually. | ||
* | ||
*/ | ||
|
||
(function(root, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(['ApiClient', 'model/Error'], factory); | ||
} else if (typeof module === 'object' && module.exports) { | ||
// CommonJS-like environments that support module.exports, like Node. | ||
module.exports = factory(require('../ApiClient'), require('../model/Error')); | ||
} else { | ||
// Browser globals (root is window) | ||
if (!root.Flagr) { | ||
root.Flagr = {}; | ||
} | ||
root.Flagr.ExportApi = factory(root.Flagr.ApiClient, root.Flagr.Error); | ||
} | ||
}(this, function(ApiClient, Error) { | ||
'use strict'; | ||
|
||
/** | ||
* Export service. | ||
* @module api/ExportApi | ||
* @version 1.0.10 | ||
*/ | ||
|
||
/** | ||
* Constructs a new ExportApi. | ||
* @alias module:api/ExportApi | ||
* @class | ||
* @param {module:ApiClient} [apiClient] Optional API client implementation to use, | ||
* default to {@link module:ApiClient#instance} if unspecified. | ||
*/ | ||
var exports = function(apiClient) { | ||
this.apiClient = apiClient || ApiClient.instance; | ||
|
||
|
||
/** | ||
* Callback function to receive the result of the getExportSQLite operation. | ||
* @callback module:api/ExportApi~getExportSQLiteCallback | ||
* @param {String} error Error message, if any. | ||
* @param {File} data The data returned by the service call. | ||
* @param {String} response The complete HTTP response. | ||
*/ | ||
|
||
/** | ||
* Export sqlite3 format of the db dump, which is converted from the main database. | ||
* @param {module:api/ExportApi~getExportSQLiteCallback} callback The callback function, accepting three arguments: error, data, response | ||
* data is of type: {@link File} | ||
*/ | ||
this.getExportSQLite = function(callback) { | ||
var postBody = null; | ||
|
||
|
||
var pathParams = { | ||
}; | ||
var queryParams = { | ||
}; | ||
var collectionQueryParams = { | ||
}; | ||
var headerParams = { | ||
}; | ||
var formParams = { | ||
}; | ||
|
||
var authNames = []; | ||
var contentTypes = ['application/json']; | ||
var accepts = ['application/octet-stream']; | ||
var returnType = File; | ||
|
||
return this.apiClient.callApi( | ||
'/export/sqlite', 'GET', | ||
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, | ||
authNames, contentTypes, accepts, returnType, callback | ||
); | ||
} | ||
}; | ||
|
||
return exports; | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.