URL Shortner

shorten given url

post
Body
idstringoptional
urlstringoptional

url to be shortened

validFrominteger · int64optional
validTillinteger · int64optional
Responses
curl -L \
  --request POST \
  --url '/egov-url-shortening/shortener' \
  --header 'Content-Type: application/json' \
  --data '{
    "id": "text",
    "url": "text",
    "validFrom": 1,
    "validTill": 1
  }'
text

redirects user to orignal url identified by id

get
Path parameters
idstringrequired

The uniqueue id field to find original url

Responses
curl -L \
  --url '/egov-url-shortening/{id}'

No body

Last updated

Was this helpful?