Richard Lavoie 10897caf37
[go-server] fix imports with go generation (#18514)
* fix imports with go generation

* Wrong copy over

* Missing new line

* tab vs space

* Fix new line between router and std go libs

* Add both use case, add samples to CI validation

* Update samples
2024-05-01 18:13:03 +08:00

91 lines
1.9 KiB
YAML

openapi: 3.0.0
info:
title: Simple no path and body param spec
version: 1.0.0
servers:
- url: /
paths:
/none/endpoint:
get:
description: description
operationId: one
responses:
"204":
description: successful operation
summary: summary
tags:
- none
/path/endpoint/{pathParam}:
get:
description: description
operationId: path
parameters:
- explode: false
in: path
name: pathParam
required: true
schema:
type: string
style: form
responses:
"204":
description: successful operation
summary: summary
tags:
- path
/body/endpoint:
post:
description: description
operationId: body
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/body_request'
text/plain:
schema:
type: string
description: Optional description in *Markdown*
required: true
responses:
"204":
description: successful operation
summary: summary
tags:
- body
/both/endpoint/{pathParam}:
post:
description: description
operationId: both
parameters:
- explode: false
in: path
name: pathParam
required: true
schema:
type: string
style: form
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/body_request'
text/plain:
schema:
type: string
description: Optional description in *Markdown*
required: true
responses:
"204":
description: successful operation
summary: summary
tags:
- both
components:
schemas:
body_request:
properties:
param:
type: string
type: object