mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-30 05:21:46 +03:00
Deprecated tags creation
This commit is contained in:
parent
397f7d09e3
commit
544836b986
5 changed files with 7 additions and 2 deletions
|
@ -87,12 +87,13 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"post": {
|
"post": {
|
||||||
|
"deprecated": true,
|
||||||
"operationId": "createTags",
|
"operationId": "createTags",
|
||||||
"tags": [
|
"tags": [
|
||||||
"Tags"
|
"Tags"
|
||||||
],
|
],
|
||||||
"summary": "Create tags",
|
"summary": "Create tags",
|
||||||
"description": "Provided a list of tags, creates all that do not yet exist",
|
"description": "Provided a list of tags, creates all that do not yet exist<br />This endpoint is deprecated, as tags are automatically created while creating a short URL",
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
"ApiKey": []
|
"ApiKey": []
|
||||||
|
|
|
@ -12,6 +12,7 @@ use Symfony\Component\Console\Input\InputOption;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
class CreateTagCommand extends Command
|
class CreateTagCommand extends Command
|
||||||
{
|
{
|
||||||
public const NAME = 'tag:create';
|
public const NAME = 'tag:create';
|
||||||
|
@ -28,7 +29,7 @@ class CreateTagCommand extends Command
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setName(self::NAME)
|
->setName(self::NAME)
|
||||||
->setDescription('Creates one or more tags.')
|
->setDescription('[Deprecated] Creates one or more tags.')
|
||||||
->addOption(
|
->addOption(
|
||||||
'name',
|
'name',
|
||||||
't',
|
't',
|
||||||
|
|
|
@ -58,6 +58,7 @@ class TagService implements TagServiceInterface
|
||||||
/**
|
/**
|
||||||
* Provided a list of tag names, creates all that do not exist yet
|
* Provided a list of tag names, creates all that do not exist yet
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @param string[] $tagNames
|
* @param string[] $tagNames
|
||||||
* @return Collection|Tag[]
|
* @return Collection|Tag[]
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,6 +28,7 @@ interface TagServiceInterface
|
||||||
public function deleteTags(array $tagNames): void;
|
public function deleteTags(array $tagNames): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @param string[] $tagNames
|
* @param string[] $tagNames
|
||||||
* @return Collection|Tag[]
|
* @return Collection|Tag[]
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,6 +10,7 @@ use Psr\Http\Message\ServerRequestInterface;
|
||||||
use Shlinkio\Shlink\Core\Tag\TagServiceInterface;
|
use Shlinkio\Shlink\Core\Tag\TagServiceInterface;
|
||||||
use Shlinkio\Shlink\Rest\Action\AbstractRestAction;
|
use Shlinkio\Shlink\Rest\Action\AbstractRestAction;
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
class CreateTagsAction extends AbstractRestAction
|
class CreateTagsAction extends AbstractRestAction
|
||||||
{
|
{
|
||||||
protected const ROUTE_PATH = '/tags';
|
protected const ROUTE_PATH = '/tags';
|
||||||
|
|
Loading…
Add table
Reference in a new issue