From 477f51ca92a83f09c47ea6395dbe2159fdcdb872 Mon Sep 17 00:00:00 2001 From: Mauricio Desiderio Date: Wed, 30 Sep 2015 11:10:46 -0500 Subject: [PATCH 1/2] Transferring blueprint from apiary.io --- apiary.apib | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 apiary.apib diff --git a/apiary.apib b/apiary.apib new file mode 100644 index 0000000..d16a266 --- /dev/null +++ b/apiary.apib @@ -0,0 +1,54 @@ +FORMAT: 1A +HOST: https://api.topcoder.com/v3 + +# ap-review-microservice + +Services to enable members to review submissions. + +It includes functionality for scorecards, scorecard questions, reviews, +review items, scoring individual reviews, aggregating review scores. + +# Scorecard API [/scorecards] + +Scorecard represents the top level object of the questions that should be +asked to reviewers during a review phase + +## Retrieve Scorecards [GET /?filter=scorecardId%3Dvalue&challengeId%3Dvalue] + +Retrieves scorecards + ++ Parameters + + filter: fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + + scorecardId - Filter parameter to retrieve a specific scorecard by id + + challengeId - Filter parameter to retrieve a specific scorecard that is assigned to the review phase of a challenge + ++ Request (application/json) + + + Headers + + Authorization: Bearer token + Accept: application/json + ++ Response 200 (application/json) + + { + "id": "-40894480:14dbb858e00:-7fb7", + "result": { + "success": true, + "status": 200, + "metadata": null, + "content": [ + { + "updatedAt": "", + "createdAt": "", + "createdBy": "", + "updatedBy": "", + "id": "", + "name": "" + } + ] + }, + "version": "v3" + } + + From 7c0b5c70b84e41d194f130ef86a37423c2625825 Mon Sep 17 00:00:00 2001 From: Rakesh Recharla Date: Fri, 2 Oct 2015 10:45:01 -0700 Subject: [PATCH 2/2] Change JDBC URL to point to master oltp --- service/run-config/prod/src/main/resources/supply-server.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/run-config/prod/src/main/resources/supply-server.yaml b/service/run-config/prod/src/main/resources/supply-server.yaml index d346d95..3829d96 100644 --- a/service/run-config/prod/src/main/resources/supply-server.yaml +++ b/service/run-config/prod/src/main/resources/supply-server.yaml @@ -34,7 +34,7 @@ databases: validationQuery: select 1 from systables # the JDBC URL - url: jdbc:informix-sqli://10.25.94.52:2020/tcs_catalog:INFORMIXSERVER=informixoltp_shmr;IFX_LOCK_MODE_WAIT=5;OPTCOMPIND=0;STMT_CACHE=1; + url: jdbc:informix-sqli://10.25.94.50:2020/tcs_catalog:INFORMIXSERVER=informixoltp_tcp;IFX_LOCK_MODE_WAIT=5;OPTCOMPIND=0;STMT_CACHE=1; # the minimum number of connections to keep open minSize: 2