Skip to content

Implement Forums Object #309

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
Oct 6, 2020
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
7 changes: 6 additions & 1 deletion app-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ const EVENT_ORIGINATOR = 'topcoder-challenges-api'

const EVENT_MIME_TYPE = 'application/json'

const DiscussionTypes = {
Challenge: 'challenge'
}

// using a testing topc, should be changed to use real topics in comments when they are created
const Topics = {
ChallengeCreated: 'challenge.notification.create',
Expand Down Expand Up @@ -85,5 +89,6 @@ module.exports = {
EVENT_MIME_TYPE,
Topics,
challengeTracks,
challengeTextSortField
challengeTextSortField,
DiscussionTypes
}
30 changes: 30 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2219,6 +2219,28 @@ definitions:
- $ref: '#/definitions/EventData'
required:
- id
Discussion:
type: object
properties:
id:
type: string
format: UUID
name:
type: string
type:
type: string
enum:
- challenge
provider:
type: string
url:
type: string
description: Only M2M tokens can modify this
options:
type: array
description: Only M2M tokens can modify this
items:
type: object
TimelineTemplate:
type: object
allOf:
Expand Down Expand Up @@ -2342,6 +2364,10 @@ definitions:
type: string
value:
type: number
discussions:
type: array
items:
$ref: '#/definitions/Discussion'
tags:
type: array
items:
Expand Down Expand Up @@ -2655,6 +2681,10 @@ definitions:
format: UUID
duration:
type: number
discussions:
type: array
items:
$ref: '#/definitions/Discussion'
prizeSets:
type: array
items:
Expand Down
Loading