AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

DEL /enrollments - 'Enrollment/s Not Found' is missing

Aberta
#208 0 comentários 0 reações 1 responsável Atribuída a @TharunKumarReddyPolu Ver no GitHub
enhancement good first issue
Linguagem predominante
DataWeave
Estrelas
2
Forks
1
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**Description:**

The `DEL /enrollments` method currently returns `Enrollment/s deleted successfully` even when no records are found.

**Expected Behavior**:

When no records are found, the API should return a 404 status code with the following response body:

```raml
404:
body:
application/json:
example:
message: Enrollment/s Not Found
````

When some enrollments are found and deleted while others are not found, the API should return a 206 status code with the following response body:

```json
{
"message": "Partial Success",
"deleted": ["enrollment_id_1", "enrollment_id_2"],
"not_found": ["enrollment_id_3", "enrollment_id_4"]
}
```

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.