Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions definitions/admin/get_badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,104 @@ type: object
properties:
badges:
type: array
items:
properties:
id:
type: number
name:
type: string
description:
type: string
grant_count:
type: number
allow_title:
type: boolean
multiple_grant:
type: boolean
icon:
type: string
image:
type: string
listable:
type: boolean
enabled:
type: boolean
badge_grouping_id:
type: number
system:
type: boolean
long_description:
type: string
slug:
type: string
query:
type: string
trigger:
type: number
target_posts:
type: boolean
auto_revoke:
type: boolean
show_posts:
type: booelan
badge_type_id:
type: number
badge_types:
type: array
items:
properties:
id:
type: number
name:
type: string
sort_order:
type: number
badge_groupings:
type: array
items:
properties:
id:
type: number
name:
type: number
description:
type: string
position:
type: number
system:
type: boolean
admin_badges:
type: object
properties:
protected_system_fields:
type: array
items:
type: string
triggers:
type: object
properties:
none:
type: number
post_action:
type: number
post_revision:
type: number
trust_level_change:
type: number
user_change:
type: number
post_processed:
type: number
badge_ids:
type: array
items:
type: number
badge_grouping_ids:
type: array
items:
type: number
badge_type_ids:
type: array
items:
type: number

136 changes: 132 additions & 4 deletions definitions/topics/private-messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,141 @@ properties:
type: number
topics:
type: array
uniqueItems: null
minItems: null
uniqueItems: true
minItems: 1
items:
required:
type: null
- id
- title
- fancy_title
- slug
- posts_count
- reply_count
- highest_post_number
- created_at
- last_posted_at
- bumped
- bumped_at
- unseen
- last_read_post_number
- unread
- new_posts
- pinned
- visible
- closed
- archived
- notification_level
- bookmarked
- liked
- views
- like_count
- has_summary
- archetype
- last_poster_username
- pinned_globally
properties:
type: null
id:
type: number
title:
type: string
minLength: 1
fancy_title:
type: string
minLength: 1
slug:
type: string
minLength: 1
posts_count:
type: number
reply_count:
type: number
highest_post_number:
type: number
image_url:
type: object
created_at:
type: string
minLength: 1
last_posted_at:
type: string
minLength: 1
bumped:
type: boolean
bumped_at:
type: string
minLength: 1
unseen:
type: boolean
last_read_post_number:
type: number
unread:
type: number
new_posts:
type: number
pinned:
type: boolean
unpinned:
type: object
visible:
type: boolean
closed:
type: boolean
archived:
type: boolean
notification_level:
type: number
bookmarked:
type: boolean
liked:
type: boolean
views:
type: number
like_count:
type: number
has_summary:
type: boolean
archetype:
type: string
minLength: 1
last_poster_username:
type: string
minLength: 1
category_id:
type: object
pinned_globally:
type: boolean
posters:
type: array
uniqueItems: true
minItems: 1
items:
required:
- extras
- description
- user_id
properties:
extras:
type: string
minLength: 1
description:
type: string
minLength: 1
user_id:
type: number
participants:
type: array
uniqueItems: true
minItems: 1
items:
required:
- user_id
properties:
extras:
type: object
description:
type: object
user_id:
type: number
required:
- can_create_topic
- draft_key
Expand Down
2 changes: 1 addition & 1 deletion swagger.json

Large diffs are not rendered by default.

34 changes: 29 additions & 5 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,10 @@ paths:
type: string
tag_names:
type: array
items:
type: string
parent_tag_name:
type: array
type: string
one_per_topic:
type: boolean
post:
Expand All @@ -478,8 +480,10 @@ paths:
properties:
name:
type: string
tag_names[]:
type: string
tag_names:
type: array
items:
type: string
responses:
'200':
description: |
Expand All @@ -502,8 +506,14 @@ paths:
type: string
tag_names:
type: array
items:
type: string
parent_tag_name:
type: array
items:
properties:
tag_name:
type: string
one_per_topic:
type: boolean
/tag_groups/{id}.json:
Expand Down Expand Up @@ -533,8 +543,14 @@ paths:
type: string
tag_names:
type: array
items:
type: string
parent_tag_name:
type: array
items:
properties:
tag_name:
type: string
one_per_topic:
type: boolean
put:
Expand All @@ -556,8 +572,10 @@ paths:
properties:
name:
type: string
tag_names[]:
type: string
tag_names:
type: array
items:
type: string
responses:
'200':
description: |
Expand All @@ -577,8 +595,14 @@ paths:
type: string
tag_names:
type: array
items:
type: string
parent_tag_name:
type: array
items:
properties:
tag_name:
type: string
one_per_topic:
type: boolean
/users/{username}.json:
Expand Down