Skip to content

Commit

Permalink
chore: added openapi spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
lassidevs committed Sep 8, 2024
1 parent 38fb80d commit e0ab15f
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions openapiSchema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
openapi: 3.0.3
servers:
- url: http://dummy.server
description: Dummy server
info:
title: Recruitment API
version: 1.0.0
license:
name: unlicensed
paths:
/hello/{name}:
get:
parameters:
- name: name
in: path
required: true
description: A name to greet
schema:
type: string
operationId: api.v1.hello.get
security: []
summary: Say hello to a name given in the path.
responses:
200:
description: Hello
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: Hello {name}
400:
description: Bad Request
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: Bad Request
/hello:
post:
operationId: api.v1.hello.post
security:
- apiKey: []
summary: Say hello to a name given in the request body.
requestBody:
content:
application/json:
schema:
type: object
required:
- name
properties:
name:
type: string
description: A name to greet
example: Jane Doe
responses:
200:
description: Hello
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: Hello Jane Doe
400:
description: Bad Request
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: Bad Request
components:
securitySchemes:
apiKey:
type: apiKey
name: api-key
in: header

0 comments on commit e0ab15f

Please sign in to comment.