Created
October 28, 2022 05:02
-
-
Save IMS94/47d87e70a837009842361ed00e091acf to your computer and use it in GitHub Desktop.
OpenAPI spec for get country by calling code API
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
openapi: 3.0.1 | |
info: | |
title: / | |
version: 0.1.0 | |
servers: | |
- url: "{server}:{port}/" | |
variables: | |
server: | |
default: http://localhost | |
port: | |
default: "8080" | |
paths: | |
/country/{callingCode}: | |
get: | |
operationId: getCountryCallingcode | |
parameters: | |
- name: callingCode | |
in: path | |
required: true | |
schema: | |
type: integer | |
format: int64 | |
responses: | |
"200": | |
description: Ok | |
content: | |
text/plain: | |
schema: | |
type: array | |
items: | |
type: string | |
"400": | |
description: BadRequest | |
"500": | |
description: Found unexpected output | |
content: | |
text/plain: | |
schema: | |
type: string | |
components: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment