AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

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

Aperta
#208 0 commenti 0 reazioni 1 assegnatario Assegnata a @TharunKumarReddyPolu Vedi su GitHub
enhancement good first issue
Lingua principale
DataWeave
Stelle
2
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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"]
}
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.