Created
February 8, 2018 07:26
-
-
Save shrutis22/5d72804796c7c454191d0961ec085eaa to your computer and use it in GitHub Desktop.
Swagger Specification for Bitly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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