wso2 / product-microgateway

Choreo Connect is a cloud-native, open-source, and developer-centric API gateway.
https://wso2.com/choreo/choreo-connect/
Apache License 2.0
289 stars 246 forks source link

Update sample with the status code change #3417

Closed TharmiganK closed 11 months ago

TharmiganK commented 11 months ago

Purpose

Ballerina 2201.2.0(Swan Lake) onwards the default response status code for the POST resource has been changed to 201-Created(Previously it was 200-OK). Related ballerina issue: https://github.com/ballerina-platform/ballerina-standard-library/issues/2469

This PR is to update the cc-sample-xml-interceptor sample to return 200-OK instead of the default 201-Created response.

Issues

Fixes #

Automation tests

Tested environments

Not Tested


Maintainers: Check before merge

codecov[bot] commented 11 months ago

Codecov Report

Patch coverage has no change and project coverage change: -0.01% :warning:

Comparison is base (43b5ce0) 27.58% compared to head (fc844c0) 27.57%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3417 +/- ## ============================================ - Coverage 27.58% 27.57% -0.01% + Complexity 3373 3372 -1 ============================================ Files 484 484 Lines 52044 52044 Branches 6350 6350 ============================================ - Hits 14356 14351 -5 - Misses 36283 36285 +2 - Partials 1405 1408 +3 ``` [see 5 files with indirect coverage changes](https://app.codecov.io/gh/wso2/product-microgateway/pull/3417/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wso2)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.