Skip to content

Instantly share code, notes, and snippets.

@shrutis22
Created February 8, 2018 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrutis22/5d72804796c7c454191d0961ec085eaa to your computer and use it in GitHub Desktop.
Save shrutis22/5d72804796c7c454191d0961ec085eaa to your computer and use it in GitHub Desktop.
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