AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api
Test GET endpoint for retrieving tasks with filters
- Lenguaje dominante
- DataWeave
- Estrellas
- 2
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.