Skip to content

Commit

Permalink
(docs): Add docs for reconstruction filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
silwalanish committed Nov 22, 2020
1 parent 13151a7 commit a4ec73a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions src/models/Reconstruction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ const TABLE_NAME: string = 'reconstructions';
* updatedAt:
* type: string
* format: date-time
* parameters:
* reconstruction_filters:
* in: query
* name: filters
* description: Filters to apply to generate pages. For multiple filters, use comma(,) separated value.<br>
* Use filters to select only some data. For example, `inQueue` filters reconstruction that are in queue.<br>
* This can also be used to order data. For example, `orderByCreatedAt` sorts data by createdAt field.
* required: false
* schema:
* type: string
* enum:
* - orderByCreatedAt
* - inQueue
* - inProgress
* - completed
* responses:
* Reconstruction:
* description: Reconstruction data in JSON response.
Expand Down
2 changes: 1 addition & 1 deletion src/routers/reconstructions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const imageUploadMiddlewares = uploadImages('images');
* parameters:
* - $ref: '#/components/parameters/page'
* - $ref: '#/components/parameters/size'
* - $ref: '#/components/parameters/filters'
* - $ref: '#/components/parameters/reconstruction_filters'
* - $ref: '#/components/parameters/order'
* responses:
* 200:
Expand Down
2 changes: 1 addition & 1 deletion src/routers/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ router.get('/:userId(\\d+)', authenticate, UserController.user);
* description: Id of user to fetch reconstructions.
* - $ref: '#/components/parameters/page'
* - $ref: '#/components/parameters/size'
* - $ref: '#/components/parameters/filters'
* - $ref: '#/components/parameters/reconstruction_filters'
* - $ref: '#/components/parameters/order'
* responses:
* 200:
Expand Down

0 comments on commit a4ec73a

Please sign in to comment.