Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Swagger Specification for Bitly
{
"swagger" : "2.0",
"info" : {
"description" : "Shorten URL API",
"version" : "1.0.0",
"title" : "Bit.ly"
},
"host" : "api-ssl.bitly.com",
"schemes" : [ "https" ],
"paths" : {
"/v3/shorten" : {
"get" : {
"summary" : "Convert long URL into short URL",
"produces" : [ "application/text" ],
"parameters" : [ {
"in" : "query",
"name" : "access_token",
"description" : "Access Token",
"required" : true,
"type" : "string"
}, {
"in" : "query",
"name" : "format",
"description" : "Output Format",
"required" : true,
"type" : "string"
}, {
"in" : "query",
"name" : "longUrl",
"description" : "Long URL",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "Result of the conversion",
"schema" : {
"type" : "string"
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment