AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

Test GET endpoint for retrieving tasks with filters

Aberta
#369 0 comentários 0 reações 1 responsável Reivindicada por @sai2709 Ver no GitHub
Linguagem predominante
DataWeave
Estrelas
2
Forks
1
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.