Set more accurate swagger docs in terms of what props are required/nullable for device long URLs

This commit is contained in:
Alejandro Celaya committed 2023-01-22 12:35:07 +01:00
1 parent b0b9902f40
commit 9949bb654d
6 files changed
+26 -6

No files matched your search

+3
View File
@@ -296,6 +296,9 @@
"type": "object",
"required": ["longUrl"],
"properties": {
"deviceLongUrls": {
"$ref": "../definitions/DeviceLongUrls.json"
},
"customSlug": {
"description": "A unique custom slug to be used instead of the generated short code",
"type": "string"
@@ -6,7 +6,7 @@
"Short URLs"
],
"summary": "Create a short URL",
"description": "Creates a short URL in a single API call. Useful for third party integrations.",
"description": "**[Deprecated]** Use [Create short URL](#/Short%20URLs/createShortUrl) instead",
"parameters": [
{
"$ref": "../parameters/version.json"