-
Notifications
You must be signed in to change notification settings - Fork 0
Method: urls.insert
Robert Durfee edited this page Aug 23, 2020
·
4 revisions
Creates a URL resource using the data included in the request.
(The REST API endpoint handler code can be found here.)
POST https://api.urls.durfee.io/urls
No path parameters are allowed.
No query parameters are allowed.
The request body contains data with the following structure:
{
"url": string
}
| Fields | |
|---|---|
url |
string The complete URL for the URL resource. |
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 \
--cacert ~/.urls/ca.cert.pem \
-X POST \
"https://api.urls.durfee.io/urls" \
-H "Content-Type: application/json" \
-d '{
"url": "https://sinews.siam.org/Details-Page/detecting-gerrymandering-with-mathematics"
}'