Skip to content

Commit d3a17ee

Browse files
get:\coach\(teamSeasonId)\(coachId)\stats -> get:\coach\(coachId)\teamseasons\(teamSeasonId)\stats
1 parent ebc912c commit d3a17ee

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

docs/Scores - Salesforce Data API.postman_collection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@
20102010
"response": []
20112011
},
20122012
{
2013-
"name": "/coach/{teamSeasonId}/{coachId}/stats",
2013+
"name": "/coach/{coachId}/teamseasons/{teamSeasonId}/stats",
20142014
"request": {
20152015
"method": "GET",
20162016
"header": [

src/main/mule/coach.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ output application/json
13591359
</ee:message>
13601360
</ee:transform>
13611361
</flow>
1362-
<flow name="get:\coach\(teamSeasonId)\(coachId)\stats" doc:id="59de02c6-9de9-4b00-9b6c-f7af6438b90e" >
1362+
<flow name="get:\coach\(coachId)\teamseasons\(teamSeasonId)\stats" doc:id="59de02c6-9de9-4b00-9b6c-f7af6438b90e" >
13631363
<set-variable value="#[attributes.uriParams.'coachId']" doc:name='Save "coachId"' doc:id="66df3a39-36f9-4328-81d5-ed4a29902fb1" variableName="coachId" />
13641364
<set-variable value="#[attributes.uriParams.'teamSeasonId']" doc:name='Save "teamSeasonId"' doc:id="477fb233-3b92-4da4-b1c3-8300ce9323ee" variableName="teamSeasonId" />
13651365
<set-variable value='#[%dw 2.0&#10;import * from dw::core::Dates&#10;&#10;output application/json&#10;var first = atBeginningOfMonth(now()) as Date&#10;var last = (atBeginningOfMonth(now() + |P1M|) - |P1D|) as Date&#10;&#10;output application/json&#10;---&#10;{&#10; "firstDay": first,&#10; "lastDay": last&#10;}]' doc:name="Set Month Dates" doc:id="59c93df1-71bb-4dc5-8f4a-1622673783c8" variableName="currentMonth"/>

src/main/resources/api/salesforce-data-api.raml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -869,22 +869,6 @@ uses:
869869
example:
870870
message: Bad data
871871

872-
873-
/coach/{teamSeasonId}/{coachId}:
874-
/stats:
875-
get:
876-
description: Retrieve summary statistics of SCORES tasks assigned to a specific coach, grouped by status
877-
responses:
878-
200:
879-
body:
880-
application/json:
881-
type: object
882-
example: |
883-
{
884-
"Not Started": 1,
885-
"Started": 0,
886-
"Complete": 42
887-
}
888872
/coach/{coachId}:
889873
/regions:
890874
get:
@@ -995,7 +979,20 @@ uses:
995979
application/json:
996980
example:
997981
message: Team-Seasons Not Found
998-
982+
/{teamSeasonId}/stats:
983+
get:
984+
description: Retrieve summary statistics of SCORES tasks assigned to a specific coach, grouped by status
985+
responses:
986+
200:
987+
body:
988+
application/json:
989+
type: object
990+
example: |
991+
{
992+
"Not Started": 1,
993+
"Started": 0,
994+
"Complete": 42
995+
}
999996
/{teamSeasonId}/sessions:
1000997
get:
1001998
displayName: Get Sessions

0 commit comments

Comments
 (0)