AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

Test GET endpoint for retrieving tasks with filters

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

説明

**Endpoint:**
`GET {{base_url_s}}/tasks`

**Query Parameters:**
• contactId (required): The unique identifier for the Contact (coach) whose tasks are being queried.
• sessionId (optional): ID of the related session; may be used to filter tasks associated with a specific session.
• teamSeasonId (optional): ID of the TeamSeason; this can be retrieved from the Session__c object.
• seasonId (optional): ID of the Season; also accessible through the Session__c object.
• startDate (optional): Filters tasks where Due_Date__c is on or after this date. Format: YYYY-MM-DD.
• endDate (optional): Filters tasks where Due_Date__c is on or before this date. Format: YYYY-MM-DD.

Tests can be written in Python (maybe [unittest](https://docs.python.org/3/library/unittest.html)?) or any other languages / frameworks. For now, Workbench is the only place to execute queries, therefore the expected result will be hardcoded. Later, I will add a separate server that allows to run SOQL queries directly. Workbench can also be used to create objects (like tasks) for testing (note: SOQL doesn't allow patch/create operations. Use `data` -> `insert` or `data` -> `update` at Workbench) To isolate these tests, the developer can reach out to Andre to create a new coach.

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

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

評価

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

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

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