-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change project layout, add api, add doc (#2)
Update template layout, swagger api + doc
- Loading branch information
Showing
17 changed files
with
71 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
swagger: "2.0" | ||
info: | ||
description: "<%= description %>" | ||
version: "1.0.0" | ||
title: "<%= _.folderName %> API Document" | ||
host: "localhost:3000" | ||
basePath: "/" | ||
tags: | ||
- name: "add" | ||
description: "add service" | ||
schemes: | ||
- "http" | ||
paths: | ||
/add: | ||
post: | ||
tags: | ||
- "add" | ||
summary: "Add 2 value" | ||
description: "add 2 value and return response" | ||
operationId: "add" | ||
consumes: | ||
- "application/json" | ||
produces: | ||
- "application/json" | ||
parameters: | ||
- in: "body" | ||
name: "body" | ||
description: "add 2 value and return response" | ||
required: true | ||
schema: | ||
$ref: "#/definitions/add_post_req" | ||
responses: | ||
200: | ||
description: "successful operation" | ||
schema: | ||
$ref: "#/definitions/add_post_res" | ||
|
||
definitions: | ||
add_post_req: | ||
type: "object" | ||
properties: | ||
add: | ||
type: "object" | ||
properties: | ||
x: | ||
type: "integer" | ||
format: "int32" | ||
y: | ||
type: "integer" | ||
format: "int32" | ||
add_post_res: | ||
properties: | ||
result: | ||
type: "integer" | ||
format: "int32" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters