Skip to content

Change topic status #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion swagger.json

Large diffs are not rendered by default.

54 changes: 20 additions & 34 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ paths:
/t/{id}/status:
put:
description: |
close a topic
Update a topics status
tags:
- Topics
parameters:
Expand All @@ -349,18 +349,33 @@ paths:
schema:
type: object
required:
- enabled
- status
- enabled
properties:
status:
type: string
example: pinned
description: |
A lowercase string. Valid values shown above.
enum:
- closed
- pinned
- pinned-globally
- archived
- visible
enabled:
type: boolean
example: true
status:
description: |
This would be true or false
until:
type: string
example: closed
example: '2018-12-31'
description: |
Only required for pinned and pinned-globally.
responses:
200:
description: close a topic response
description: Update a Topics Status
schema:
type: object
properties:
Expand Down Expand Up @@ -12478,35 +12493,6 @@ paths:
200:
description: |
create a timed topic response
/t/{id}/status:
put:
description: |
Update a topics status
tags:
- Topics
parameters:
- name: body
in: body
schema:
type: object
properties:
status:
type: string
example: closed
enum:
- closed
- visible
- archived
- pinned_globally
enabled:
type: boolean
example: true
until:
type: string
responses:
200:
description: |
update status response
/t/{id}/change-timestamp:
put:
description: |
Expand Down