URL-shortening
  1. URLs
URL-shortening
  • Users
    • User signup
      POST
    • User login
      GET
    • Update user account
      PUT
  • URLs
    • Create short URL
      POST
    • Short url redirect
      GET
    • Get Url(s)
      GET
    • Delete short URL
      DELETE
  1. URLs

Get Url(s)

GET
/url/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/url/'
Response Response Example
200 - Example 1
{
    "id": 3,
    "url": "https://laravel.com/docs/10.x/validation#rule-url",
    "short_uri": "6835559f6178b",
    "accessCount": 4
}

Request

Path Params
id
string 
required

Responses

🟢200Success
application/json
Body
id
string 
required
ID
url
string <url>
required
short_uri
string <uri>
required
accessCount
integer <int32>
required
Default:
0
🟠404Record Not Found
🟠401Unauthorized
🔴500Server Error
Modified at 2025-05-27 20:49:34
Previous
Short url redirect
Next
Delete short URL
Built with