Skip to content

Method: urls.get

Robert Durfee edited this page Aug 23, 2020 · 5 revisions

Returns the specified URL resource.

(The REST API endpoint handler code can be found here.)

HTTP Request

GET https://api.urls.durfee.io/urls/{resourceId}

Path Parameters

Parameters
resourceId string

The unique identifier of the URL resource to return. This identifier is defined by the server.

Query Parameters

No query parameters are allowed.

Request Body

The request body must be empty.

Response Body

If successful, the response body contains data with the following structure:

{
    "id": string,
    "url": string
}
Fields
id string

The unique identifier for the URL resource. This identifier is defined by the server.
url string

The complete URL for the URL resource.

curl Example

curl \
    --cacert ~/.urls/ca.cert.pem \
    -X GET \
    "https://api.urls.durfee.io/urls/bOIeVSV"

URL Shortener API

Clone this wiki locally