Skip to content

Instantly share code, notes, and snippets.

@IMS94
Created October 28, 2022 05:02
Show Gist options
  • Save IMS94/47d87e70a837009842361ed00e091acf to your computer and use it in GitHub Desktop.
Save IMS94/47d87e70a837009842361ed00e091acf to your computer and use it in GitHub Desktop.
OpenAPI spec for get country by calling code API
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