AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

Test GET endpoint for retrieving tasks with filters

Offen
#369 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @sai2709 Auf GitHub ansehen
Vorherrschende Sprache
DataWeave
Sterne
2
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.