All URIs are relative to /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 |
\Flagr\Client\Model\Tag createTag($body, $flag_id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Flagr\Client\Api\TagApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Flagr\Client\Model\CreateTagRequest(); // \Flagr\Client\Model\CreateTagRequest | create a tag
$flag_id = 789; // int | numeric ID of the flag
try {
$result = $apiInstance->createTag($body, $flag_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->createTag: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Flagr\Client\Model\CreateTagRequest | create a tag | |
flag_id | int | numeric ID of the flag |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteTag($flag_id, $tag_id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Flagr\Client\Api\TagApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$flag_id = 789; // int | numeric ID of the flag
$tag_id = 789; // int | numeric ID of the tag
try {
$apiInstance->deleteTag($flag_id, $tag_id);
} catch (Exception $e) {
echo 'Exception when calling TagApi->deleteTag: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
flag_id | int | numeric ID of the flag | |
tag_id | int | numeric ID of the tag |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Flagr\Client\Model\Tag[] findAllTags($limit, $offset, $value_like)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Flagr\Client\Api\TagApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$limit = 789; // int | the numbers of tags to return
$offset = 789; // int | return tags given the offset, it should usually set together with limit
$value_like = "value_like_example"; // string | return tags partially matching given value
try {
$result = $apiInstance->findAllTags($limit, $offset, $value_like);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->findAllTags: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
limit | int | the numbers of tags to return | [optional] |
offset | int | return tags given the offset, it should usually set together with limit | [optional] |
value_like | string | return tags partially matching given value | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Flagr\Client\Model\Tag[] findTags($flag_id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Flagr\Client\Api\TagApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$flag_id = 789; // int | numeric ID of the flag
try {
$result = $apiInstance->findTags($flag_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->findTags: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
flag_id | int | numeric ID of the flag |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]