AmericaSCORESBayArea / AmericaSCORESBayArea/salesforce-data-api

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

Đang mở
#208 0 bình luận 0 reaction 1 người được giao Được giao cho @TharunKumarReddyPolu Xem trên GitHub
enhancement good first issue
Ngôn ngữ chính
DataWeave
Star
2
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.