Skip to content

Commit 8465c29

Browse files
committed
Update swagger with examples
1 parent ad4e3b2 commit 8465c29

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ build-dirs:
182182
clean: container-clean bin-clean
183183

184184
container-clean:
185-
rm -rf .container-* .dockerfile-* .push-*
185+
rm -rf .container-* .dockerfile-* .push-* dist
186186

187187
bin-clean:
188188
rm -rf .go bin

cmd/server/public/swagger/swagger.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ info:
33
description: "This is a sample server go-swap-server. You can find out more about information at [https://github.com/me-io/go-swap](https://github.com/me-io/go-swap)"
44
version: "1.0.0"
55
title: "Go-Swap-Server"
6-
termsOfService: "https://github.com/me-io/go-swap"
76
contact:
87
email: "meabed@me.io"
98
license:
@@ -50,6 +49,17 @@ paths:
5049
description: "Invalid input"
5150
definitions:
5251
ConvertRequest:
52+
example:
53+
amount: 2.5
54+
from: "USD"
55+
to: "AED"
56+
decimalPoints: 4
57+
cacheTime: "120s"
58+
exchanger:
59+
- name: "yahoo"
60+
- name: "google"
61+
- name: "themoneyconverter"
62+
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0"
5363
type: "object"
5464
required:
5565
- "amount"

0 commit comments

Comments
 (0)