-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopenapi.v1.yaml
49 lines (49 loc) · 1.34 KB
/
openapi.v1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
openapi: 3.0.0
info:
title: Go API Example
version: '1.0'
contact:
name: Steve McDougall
url: 'https://www.juststeveking.uk'
email: [email protected]
description: A simple Go Lang API example built for education purposes.
servers:
- url: 'http://localhost:8080'
description: Docker
paths:
/ping:
get:
summary: Ping Service
tags: []
responses:
'200':
description: OK
headers:
Content-Type:
schema:
type: string
default: application/vnd.api+json
description: The Response content type should be application/vnd.api+json
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Ping-Message'
operationId: get-ping
description: 'A simple endpoint to ensure the API is online and working as expected, will return a message stating that the service is online.'
parameters: []
parameters: []
components:
schemas:
Ping-Message:
title: Ping-Message
type: object
properties:
message:
type: string
description: A simple online and working message from the API
required:
- message
x-examples:
Service Online:
message: Service Online