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" + } + + diff --git a/service/pom.xml b/service/pom.xml index c168bda..1556abd 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -3,7 +3,7 @@ 4.0.0 appirio.platform review-microservice - 1.0.2-SNAPSHOT + 1.0.2 Review Microservice 0.7.1 @@ -123,7 +123,7 @@ appirio.platform supply-library - 1.0.3-SNAPSHOT + 1.0.3 org.projectlombok 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