AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

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

未關閉
#208 0 則留言 0 個 reaction 已指派 1 人 已指派給 @TharunKumarReddyPolu 在 GitHub 檢視
enhancement good first issue
主要語言
DataWeave
星號
2
分支
1
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。