Skip to content

Instantly share code, notes, and snippets.

@moomdate
Created March 17, 2023 08:58
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 moomdate/cb121f9607b4810947092846a1429f8c to your computer and use it in GitHub Desktop.
Save moomdate/cb121f9607b4810947092846a1429f8c to your computer and use it in GitHub Desktop.
openapi: 3.0.1
info:
title: OpenAPI definition
version: v0
servers:
- url: http://localhost:8080/api
description: Generated server url
paths:
/update-location/{id}:
put:
tags:
- location-controller
operationId: save
parameters:
- name: id
in: path
required: true
style: simple
explode: false
schema:
type: integer
format: int64
- name: building
in: query
required: false
style: form
explode: true
schema:
type: string
- name: floor
in: query
required: false
style: form
explode: true
schema:
type: string
- name: zone
in: query
required: false
style: form
explode: true
schema:
type: string
responses:
"200":
description: OK
content:
'*/*':
schema:
type: object
/save-location:
post:
tags:
- location-controller
operationId: save_1
parameters:
- name: building
in: query
required: false
style: form
explode: true
schema:
type: string
- name: floor
in: query
required: false
style: form
explode: true
schema:
type: string
- name: zone
in: query
required: false
style: form
explode: true
schema:
type: string
responses:
"200":
description: OK
content:
'*/*':
schema:
type: object
/location:
get:
tags:
- location-controller
operationId: findAll
responses:
"200":
description: OK
content:
'*/*':
schema:
type: object
/hello:
get:
tags:
- hello-controller
operationId: hello
responses:
"200":
description: OK
content:
'*/*':
schema:
type: string
/find-location/{keyword}:
get:
tags:
- location-controller
operationId: findByKeyword
parameters:
- name: keyword
in: path
required: true
style: simple
explode: false
schema:
type: string
responses:
"200":
description: OK
content:
'*/*':
schema:
type: object
/delete-location/{id}:
delete:
tags:
- location-controller
operationId: delete
parameters:
- name: id
in: path
required: true
style: simple
explode: false
schema:
type: string
responses:
"200":
description: OK
content:
'*/*':
schema:
type: object
components:
schemas: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment