AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

GET `/api/regions/active`

オープン
#229 コメント 1 件 リアクション 0 件 担当者 1 名 @a-v25 が担当を希望しています GitHub で見る
Critical/Blocking enhancement
主要言語
DataWeave
スター
2
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

**Description**

Some regions in the enrollment flows are not active or valid and should not appear in any selector. We need a new endpoint to return only active regions.

~~**Possible strategy**~~

~~1) Retrieve all `TeamSeasons`~~
~~2) Filter `TeamSeasons` based on their start date (to determine whether they are active or not)~~
~~3) Get `regions` through the following relation `Team_Season__r.Team__r.School_Site__r.Region__c`~~

**Endpoint**: `GET /api/regions/active`

**Response**:
```json

{
["Region 1", "Region 2", "Region 3"]
}

```
~~

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。