Skip to content
Permalink
Browse files

Add proper swagger route for optional path variable `/assets/files` r…

…oute (#58)

* Add proper swagger route for optional path variable  route

* changelog
  • Loading branch information...
msluther committed May 28, 2019
1 parent 90c3c34 commit faabc1c7c0f33b6e0c25a54e2312bf83bfed8e47
Showing with 32 additions and 0 deletions.
  1. +1 −0 CHANGELOG.md
  2. +31 −0 lib/routes/assets.js
@@ -1,5 +1,6 @@
# CHANGELOG

- Add proper swagger route for optional path variable `/assets/files` route
- [#57] Update `README.md`
- Add badges
- Add `promote` routes
@@ -28,6 +28,37 @@ module.exports = function (app) {
/**
* API for serving latest files
* @swagger
* /assets/files/{pkg}/{env}:
* get:
* summary: Gets the file assets for a given package-environment-version
* security: []
* produces:
* - "application/json"
* parameters:
* - $ref: '#/parameters/Pkg'
* - $ref: '#/parameters/Env'
* - in: query
* name: filter
* required: false
* schema:
* type: string
* maximum: 50
* description: Case-insensitive substring filter to apply to the file list
* responses:
* 200:
* description: OK
* content:
* application/json:
* schema:
* $ref: '#/definitions/Assets'
* 400:
* description: Filter is too long
* 403:
* $ref: '#/responses/Standard403'
* 404:
* $ref: '#/responses/Standard404'
* 500:
* $ref: '#/responses/Standard500'
* /assets/files/{pkg}/{env}/{version}:
* get:
* summary: Gets the file assets for a given package-environment-version

0 comments on commit faabc1c

Please sign in to comment.
You can’t perform that action at this time.