URL Shortner

shorten given url

post
Body
idstringOptional
urlstringOptional

url to be shortened

validFrominteger · int64Optional
validTillinteger · int64Optional
Responses
200
shortened url returned
*/*
Responsestring
post
POST /egov-url-shortening/shortener HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 54

{
  "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
200
user redirected to original url
get
GET /egov-url-shortening/{id} HTTP/1.1
Host: 
Accept: */*

No content

Last updated

Was this helpful?