2016-10-22 16:44:14 -05:00
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"shortCode": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The short code for this short URL."
|
|
|
|
},
|
2018-08-13 09:17:43 -05:00
|
|
|
"shortUrl": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The short URL."
|
|
|
|
},
|
|
|
|
"longUrl": {
|
2016-10-22 16:44:14 -05:00
|
|
|
"type": "string",
|
|
|
|
"description": "The original long URL."
|
|
|
|
},
|
|
|
|
"dateCreated": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time",
|
|
|
|
"description": "The date in which the short URL was created in ISO format."
|
|
|
|
},
|
|
|
|
"visitsCount": {
|
|
|
|
"type": "integer",
|
|
|
|
"description": "The number of visits that this short URL has recieved."
|
|
|
|
},
|
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": "A list of tags applied to this short URL"
|
2018-08-13 09:17:43 -05:00
|
|
|
},
|
2019-07-08 11:42:53 -05:00
|
|
|
"meta": {
|
|
|
|
"$ref": "./ShortUrlMeta.json"
|
2020-02-02 01:57:04 -06:00
|
|
|
},
|
|
|
|
"domain": {
|
|
|
|
"type": "string",
|
2021-02-02 13:51:28 -06:00
|
|
|
"nullable": true,
|
2020-02-02 01:57:04 -06:00
|
|
|
"description": "The domain in which the short URL was created. Null if it belongs to default domain."
|
2021-02-02 13:51:28 -06:00
|
|
|
},
|
|
|
|
"title": {
|
|
|
|
"type": "string",
|
|
|
|
"nullable": true,
|
|
|
|
"description": "A descriptive title of the short URL."
|
2016-10-22 16:44:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|