Skip to content

Commit be156cc

Browse files
authored
Merge pull request #198 from topcoder-platform/Issue_193
Issue 193
2 parents daa7453 + 0bde633 commit be156cc

File tree

8 files changed

+657
-839
lines changed

8 files changed

+657
-839
lines changed

docs/swagger.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ paths:
9595
legacySubmissionId: 'a12a4180-65aa-42ec-a945-5fd21dec0502'
9696
legacyUploadId: 'a12a4180-65aa-42ec-a945-5fd21dec0502'
9797
submissionPhaseId: 764567
98+
submittedDate: '2018-05-20T07:00:30.123Z'
9899
created: '2018-05-20T07:00:30.123Z'
99100
updated: '2018-06-01T07:36:28.178Z'
100101
createdBy: 'topcoder user'
@@ -107,6 +108,7 @@ paths:
107108
legacySubmissionId: 'a12a4180-65aa-42ec-a945-5fd21dec0502'
108109
legacyUploadId: 'a12a4180-65aa-42ec-a945-5fd21dec0502'
109110
submissionPhaseId: 764567
111+
submittedDate: '2018-05-20T08:00:30.000Z'
110112
created: '2018-05-20T08:00:30.000Z'
111113
updated: '2018-06-01T09:23:00.178Z'
112114
createdBy: 'topcoder user'
@@ -205,6 +207,7 @@ paths:
205207
Create a new submission.
206208
207209
**Authorization:** Submission creation is accessible by roles `topcoder user`, `admin` and `copilot`.
210+
**Note** Value for `submittedDate` attribute can only be provided by users with `admin` role
208211
tags:
209212
- Submissions
210213
operationId: createSubmission
@@ -262,6 +265,11 @@ paths:
262265
name: submissionPhaseId
263266
type: integer
264267
description: Submission Phase Id
268+
- in: formData
269+
name: submittedDate
270+
type: string
271+
format: date-time
272+
description: Date of submission (defaults to submission creation date if none passed)
265273
responses:
266274
201:
267275
description: Created - The request was successful and the resource is returned.
@@ -612,6 +620,7 @@ paths:
612620
scoreCardId: 123456789
613621
isPassing: false
614622
isFinal: false
623+
reviewedDate: '2018-05-20T07:00:30.123Z'
615624
created: '2018-05-20T07:00:30.123Z'
616625
updated: '2018-06-01T07:36:28.178Z'
617626
createdBy: copilot
@@ -622,6 +631,7 @@ paths:
622631
scoreCardId: 123456789
623632
isPassing: true
624633
isFinal: true
634+
reviewedDate: '2018-05-20T07:00:30.123Z'
625635
created: '2018-05-20T07:00:30.123Z'
626636
updated: '2018-06-01T07:36:28.178Z'
627637
createdBy: copilot
@@ -718,6 +728,8 @@ paths:
718728
Create a new review summation.
719729
720730
**Authorization:** Review summation creation is accessible by roles `admin` and `copilot`.
731+
732+
**Note** Value for `reviewedDate` attribute can only be provided by users with `admin` role
721733
tags:
722734
- 'Review summations'
723735
operationId: createReviewSummation
@@ -931,6 +943,7 @@ paths:
931943
scoreCardId: 123456789
932944
submissionId: 'd67a4180-65aa-42ec-a945-5fd21dec0503'
933945
status: 'queued'
946+
reviewedDate: '2018-05-20T07:00:30.123Z'
934947
created: '2018-05-20T07:00:30.123Z'
935948
updated: '2018-06-01T07:36:28.178Z'
936949
createdBy: 'admin'
@@ -942,6 +955,7 @@ paths:
942955
scoreCardId: 123456789
943956
submissionId: 'd23a4180-65aa-42ec-a945-5fd21dec0503'
944957
status: 'completed'
958+
reviewedDate: '2018-05-20T07:00:30.123Z'
945959
created: '2018-05-20T07:00:30.123Z'
946960
updated: '2018-06-01T07:36:28.178Z'
947961
createdBy: 'admin'
@@ -1038,6 +1052,8 @@ paths:
10381052
Create a new review.
10391053
10401054
**Authorization:** Review creation is accessible by roles `admin` and `copilot`.
1055+
1056+
**Note** Value for `reviewedDate` attribute can only be provided by users with `admin` role
10411057
tags:
10421058
- 'Reviews'
10431059
operationId: createReview
@@ -1880,6 +1896,11 @@ definitions:
18801896
type: integer
18811897
description: The submission phase id.
18821898
example: '5dea6d9e-161a-4c7a-b316-597c73a7b8f4'
1899+
submittedDate:
1900+
type: string
1901+
format: date-time
1902+
description: Date of submission (defaults to submission creation date if none passed)
1903+
example: '2018-05-20T07:00:30.123Z'
18831904

18841905
UpdatableSubmission:
18851906
description: The submission entity fields that updates whole entity.
@@ -1939,6 +1960,11 @@ definitions:
19391960
metadata:
19401961
type: object
19411962
description: Review summation metadata in JSON format
1963+
reviewedDate:
1964+
type: string
1965+
format: date-time
1966+
description: Date of review summation (defaults to review summation creation date if none passed)
1967+
example: '2018-05-20T07:00:30.123Z'
19421968

19431969
UpdatableReviewSummation:
19441970
description: The review summation entity fields that updates whole entity.
@@ -2006,6 +2032,11 @@ definitions:
20062032
metadata:
20072033
type: object
20082034
description: Review Metadata in JSON format
2035+
reviewedDate:
2036+
type: string
2037+
format: date-time
2038+
description: Date of review (defaults to review creation date if none passed)
2039+
example: '2018-05-20T07:00:30.123Z'
20092040

20102041
UpdatableReview:
20112042
description: The review entity fields that updates whole entity.

0 commit comments

Comments
 (0)