Tweeter
Tweeter · GPT-Aktionen
TinyURL API
API for creating short URLs using TinyURL.
GET /api-create.phpCreate a short URLThis endpoint creates a short URL from a given long URL.
Ursprüngliches API-Schema
{
"openapi": "3.0.0",
"info": {
"title": "TinyURL API",
"version": "1.0.0",
"description": "API for creating short URLs using TinyURL."
},
"servers": [
{
"url": "https://tinyurl.com",
"description": "TinyURL API server"
}
],
"paths": {
"/api-create.php": {
"get": {
"summary": "Create a short URL",
"operationId": "createTinyURL",
"description": "This endpoint creates a short URL from a given long URL.\n",
"parameters": [
{
"name": "url",
"in": "query",
"required": true,
"description": "The long URL to be shortened.",
"schema": {
"type": "string",
"format": "uri"
}
}
],
"responses": {
"200": {
"description": "A short URL is returned.",
"content": {
"text/plain": {
"schema": {
"type": "string",
"example": "https://tinyurl.com/example"
}
}
}
},
"400": {
"description": "Bad request, possibly due to missing or invalid URL."
},
"500": {
"description": "Internal server error."
}
}
}
}
},
"components": {
"schemas": {
"ShortUrlResponse": {
"type": "string",
"example": "https://tinyurl.com/example"
}
}
}
}