mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Documented list tags endpoint
This commit is contained in:
parent
5c7962966d
commit
caf4fa7fdd
53
docs/swagger/paths/v1_tags.json
Normal file
53
docs/swagger/paths/v1_tags.json
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
"get": {
|
||||||
|
"tags": [
|
||||||
|
"Tags"
|
||||||
|
],
|
||||||
|
"summary": "List existing tags",
|
||||||
|
"description": "Returns the list of all tags used in any short URL, ordered by name",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "../parameters/Authorization.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "The list of tags",
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"tags": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"examples": {
|
||||||
|
"application/json": {
|
||||||
|
"shortUrls": {
|
||||||
|
"data": [
|
||||||
|
"games",
|
||||||
|
"php",
|
||||||
|
"shlink",
|
||||||
|
"tech"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"500": {
|
||||||
|
"description": "Unexpected error.",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "../definitions/Error.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -3,7 +3,7 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"title": "Shlink",
|
"title": "Shlink",
|
||||||
"description": "Shlink, the self-hosted URL shortener",
|
"description": "Shlink, the self-hosted URL shortener",
|
||||||
"version": "1.2.0"
|
"version": "1.0"
|
||||||
},
|
},
|
||||||
"schemes": [
|
"schemes": [
|
||||||
"http",
|
"http",
|
||||||
@ -22,17 +22,24 @@
|
|||||||
"/v1/authenticate": {
|
"/v1/authenticate": {
|
||||||
"$ref": "paths/v1_authenticate.json"
|
"$ref": "paths/v1_authenticate.json"
|
||||||
},
|
},
|
||||||
|
|
||||||
"/v1/short-codes": {
|
"/v1/short-codes": {
|
||||||
"$ref": "paths/v1_short-codes.json"
|
"$ref": "paths/v1_short-codes.json"
|
||||||
},
|
},
|
||||||
"/v1/short-codes/{shortCode}": {
|
"/v1/short-codes/{shortCode}": {
|
||||||
"$ref": "paths/v1_short-codes_{shortCode}.json"
|
"$ref": "paths/v1_short-codes_{shortCode}.json"
|
||||||
},
|
},
|
||||||
"/v1/short-codes/{shortCode}/visits": {
|
|
||||||
"$ref": "paths/v1_short-codes_{shortCode}_visits.json"
|
|
||||||
},
|
|
||||||
"/v1/short-codes/{shortCode}/tags": {
|
"/v1/short-codes/{shortCode}/tags": {
|
||||||
"$ref": "paths/v1_short-codes_{shortCode}_tags.json"
|
"$ref": "paths/v1_short-codes_{shortCode}_tags.json"
|
||||||
|
},
|
||||||
|
|
||||||
|
"/v1/tags": {
|
||||||
|
"$ref": "paths/v1_tags.json"
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
"/v1/short-codes/{shortCode}/visits": {
|
||||||
|
"$ref": "paths/v1_short-codes_{shortCode}_visits.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user