Document URL service (#107)

This commit is contained in:
Janos Dobronszki
2021-05-17 16:33:24 +01:00
committed by GitHub
parent 8491238d12
commit c57e09a92a
2 changed files with 41 additions and 0 deletions

33
url/examples.json Normal file
View File

@@ -0,0 +1,33 @@
{
"list": [{
"title": "List your shortened URLs",
"description": "List the token holder's shortened URLs",
"request": {
},
"response": {
"urlPairs": [{
"shortURL": "https://m3o.one/u/f8f3f83f3f83g",
"destinationURL": "https://mysite.com/this-is-a-rather-long-web-address",
"owner": "owner-id"
}]
}
}],
"shorten": [{
"title": "Shorten a long URL",
"request": {
"destinationURL": "https://mysite.com/this-is-a-rather-long-web-address"
},
"response": {
"shortURL": "https://m3o.one/u/f8f3f83f3f83g"
}
}],
"proxy": [{
"title": "Resolve a short URL to a long destination URL",
"request": {
"shortURL": "f8f3f83f3f83g"
},
"response": {
"destinationURL": "https://mysite.com/this-is-a-rather-long-web-address"
}
}]
}