Armin Friedl
7fa31575f9
All checks were successful
continuous-integration/drone/push Build is passing
11 lines
No EOL
179 B
HTTP
11 lines
No EOL
179 B
HTTP
:host = http://localhost:5000
|
|
|
|
# Create a new shortlink
|
|
POST :host/api/snip
|
|
-> jq-set-var :snip .snip
|
|
{
|
|
"url": "https://example.com"
|
|
}
|
|
|
|
# Unsnip shortlink
|
|
GET :host/api/:snip |