Documented crawlable prop in API specs

This commit is contained in:
Alejandro Celaya 2021-05-22 07:32:47 +02:00
parent 7280b48cdc
commit 2e6b3c0561
5 changed files with 31 additions and 8 deletions

View File

@ -116,6 +116,15 @@
"domain": { "domain": {
"type": "string", "type": "string",
"description": "The domain in which the short URL was created. Null if it belongs to default domain." "description": "The domain in which the short URL was created. Null if it belongs to default domain."
},
"title": {
"type": "string",
"nullable": true,
"description": "A descriptive title of the short URL."
},
"crawlable": {
"type": "boolean",
"description": "Tells if this URL will be included as 'Allow' in Shlink's robots.txt."
} }
}, },
"example": { "example": {
@ -133,7 +142,9 @@
"validUntil": null, "validUntil": null,
"maxVisits": 100 "maxVisits": 100
}, },
"domain": "example.com" "domain": "example.com",
"title": "The title",
"crawlable": false
} }
}, },
"ShortUrlMeta": { "ShortUrlMeta": {

View File

@ -41,6 +41,10 @@
"type": "string", "type": "string",
"nullable": true, "nullable": true,
"description": "A descriptive title of the short URL." "description": "A descriptive title of the short URL."
},
"crawlable": {
"type": "boolean",
"description": "Tells if this URL will be included as 'Allow' in Shlink's robots.txt."
} }
} }
} }

View File

@ -140,7 +140,8 @@
"maxVisits": 100 "maxVisits": 100
}, },
"domain": null, "domain": null,
"title": "Welcome to Steam" "title": "Welcome to Steam",
"crawlable": false
}, },
{ {
"shortCode": "12Kb3", "shortCode": "12Kb3",
@ -157,7 +158,8 @@
"maxVisits": null "maxVisits": null
}, },
"domain": null, "domain": null,
"title": null "title": null,
"crawlable": false
}, },
{ {
"shortCode": "123bA", "shortCode": "123bA",
@ -172,7 +174,8 @@
"maxVisits": null "maxVisits": null
}, },
"domain": "example.com", "domain": "example.com",
"title": null "title": null,
"crawlable": false
} }
], ],
"pagination": { "pagination": {
@ -305,7 +308,9 @@
"validUntil": null, "validUntil": null,
"maxVisits": 500 "maxVisits": 500
}, },
"domain": null "domain": null,
"title": null,
"crawlable": false
} }
} }
}, },

View File

@ -74,7 +74,8 @@
"maxVisits": 100 "maxVisits": 100
}, },
"domain": null, "domain": null,
"title": null "title": null,
"crawlable": false
}, },
"text/plain": "https://doma.in/abc123" "text/plain": "https://doma.in/abc123"
} }

View File

@ -54,7 +54,8 @@
"maxVisits": 100 "maxVisits": 100
}, },
"domain": null, "domain": null,
"title": null "title": null,
"crawlable": false
} }
} }
}, },
@ -184,7 +185,8 @@
"maxVisits": 100 "maxVisits": 100
}, },
"domain": null, "domain": null,
"title": "Shlink - The URL shortener" "title": "Shlink - The URL shortener",
"crawlable": false
} }
} }
}, },