📅 Schedule Companion | ゆみちゃん
📅 Schedule Companion | ゆみちゃん · Acciones GPT
URL Shortening Service
Provides a short URL for a given long URL.
POST /api/v1/shortenShortenURLShorten a long URL
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "URL Shortening Service",
"description": "Provides a short URL for a given long URL.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://cleanuri.com"
}
],
"paths": {
"/api/v1/shorten": {
"post": {
"description": "Shorten a long URL",
"operationId": "ShortenURL",
"parameters": [
{
"name": "url",
"in": "body",
"description": "The long URL to be shortened",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful operation",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result_url": {
"type": "string",
"description": "The shortened URL"
},
"error": {
"type": "string",
"description": "Information about the error, if it occurred"
}
}
}
}
}
}
},
"deprecated": false
}
}
},
"components": {
"schemas": {}
}
}