AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

Test GET endpoint for retrieving tasks with filters

Ouverte
#369 0 commentaires 0 réactions 1 personne assignée Réclamée par @sai2709 Voir sur GitHub
Langage dominant
DataWeave
Étoiles
2
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.