-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
336 additions
and
9 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
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
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
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
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,110 @@ | ||
{ | ||
"info": { | ||
"title": "swagger generator v2 tests", | ||
"version": "1.0.0" | ||
}, | ||
"paths": { | ||
"/message": { | ||
"get": { | ||
"parameters": [ | ||
{ | ||
"description": "Number of results to return", | ||
"in": "query", | ||
"name": "$limit", | ||
"type": "integer" | ||
}, | ||
{ | ||
"description": "Number of results to skip", | ||
"in": "query", | ||
"name": "$skip", | ||
"type": "integer" | ||
}, | ||
{ | ||
"description": "Property to sort results", | ||
"in": "query", | ||
"name": "$sort", | ||
"type": "string" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "success", | ||
"schema": { | ||
"$ref": "#/definitions/message_pagination" | ||
} | ||
}, | ||
"401": { | ||
"description": "not authenticated" | ||
}, | ||
"500": { | ||
"description": "general error" | ||
} | ||
}, | ||
"description": "Retrieves a list of all resources from the service.", | ||
"summary": "", | ||
"tags": [ | ||
"message" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [] | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"message": { | ||
"type": "object", | ||
"properties": { | ||
"content": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"message_list": { | ||
"title": "message list", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/message" | ||
} | ||
}, | ||
"message_pagination": { | ||
"title": "message pagination result", | ||
"type": "object", | ||
"properties": { | ||
"total": { | ||
"type": "integer" | ||
}, | ||
"limit": { | ||
"type": "integer" | ||
}, | ||
"skip": { | ||
"type": "integer" | ||
}, | ||
"data": { | ||
"$ref": "#/definitions/message_list" | ||
} | ||
} | ||
} | ||
}, | ||
"swagger": "2.0", | ||
"schemes": [ | ||
"http" | ||
], | ||
"tags": [ | ||
{ | ||
"name": "message", | ||
"description": "A message service" | ||
} | ||
], | ||
"basePath": "/", | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
] | ||
} |
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
Oops, something went wrong.