This project is based on Mulesoft Dataweave and Salesforce to provide secure, reliable, API access for all the Scores apps and projects. It is hosted on Anypoint and acts as the transactional hub, in concert with the authentication API
Fixed the Issue DEL /enrollments - 'Enrollment/s Not Found' is missing with implementing a choice in the .xml flow as follows:
Success flow: If post delete payload's successful flag is true, then return status code as 200 OK
Error flow: If post delete payload's size with filter(no. of items with item.successful is false) and without filter are same, then return status code as 404 Not Found
Partial Success flow: Else Case of above, then return status code as 206 Partial Content
[ ] Update the flow endpoint in the RAML file src/main/resources/api/salesforce-data-api.raml
[ ] Document the changes to the RAML file in docs/raml_changes
[X] Update the flow in the related .xml file
[ ] Update the flow into the Postman collection
[X] Test the new flow locally using Postman or Thunder (for testing, don't forget to point to local RAML in src/main/mule/global.xml: api="salesforce-data-api.raml").
Description:
Fixed the Issue
DEL /enrollments - 'Enrollment/s Not Found' is missing
with implementing a choice in the .xml flow as follows:successful
flag is true, then return status code as200 OK
item.successful
isfalse
) and without filter are same, then return status code as404 Not Found
206 Partial Content
src/main/resources/api/salesforce-data-api.raml
docs/raml_changes
Update the flow in the related.xml
fileUpdate the flow into the Postman collectionsrc/main/mule/global.xml
:api="salesforce-data-api.raml"
).Test Example:
DELETE
{{base_url}}/enrollments
Payload 1:
Payload 2:
Payload 3:
Screenshots of Tests:
Payload 1:
Payload 2:
Payload 3: