All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
createTag | POST /flags/{flagID}/tags | |
deleteTag | DELETE /flags/{flagID}/tags/{tagID} | |
findAllTags | GET /tags | |
findTags | GET /flags/{flagID}/tags |
Tag createTag(flagID, body)
var Jsflagr = require('jsflagr');
var apiInstance = new Jsflagr.TagApi();
var flagID = 789; // Number | numeric ID of the flag
var body = new Jsflagr.CreateTagRequest(); // CreateTagRequest | create a tag
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createTag(flagID, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
flagID | Number | numeric ID of the flag | |
body | CreateTagRequest | create a tag |
No authorization required
- Content-Type: application/json
- Accept: application/json
deleteTag(flagID, tagID)
var Jsflagr = require('jsflagr');
var apiInstance = new Jsflagr.TagApi();
var flagID = 789; // Number | numeric ID of the flag
var tagID = 789; // Number | numeric ID of the tag
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteTag(flagID, tagID, callback);
Name | Type | Description | Notes |
---|---|---|---|
flagID | Number | numeric ID of the flag | |
tagID | Number | numeric ID of the tag |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Tag] findAllTags(opts)
var Jsflagr = require('jsflagr');
var apiInstance = new Jsflagr.TagApi();
var opts = {
'limit': 789, // Number | the numbers of tags to return
'offset': 789, // Number | return tags given the offset, it should usually set together with limit
'valueLike': "valueLike_example" // String | return tags partially matching given value
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.findAllTags(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
limit | Number | the numbers of tags to return | [optional] |
offset | Number | return tags given the offset, it should usually set together with limit | [optional] |
valueLike | String | return tags partially matching given value | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Tag] findTags(flagID)
var Jsflagr = require('jsflagr');
var apiInstance = new Jsflagr.TagApi();
var flagID = 789; // Number | numeric ID of the flag
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.findTags(flagID, callback);
Name | Type | Description | Notes |
---|---|---|---|
flagID | Number | numeric ID of the flag |
No authorization required
- Content-Type: application/json
- Accept: application/json