jembi / openhim-mediator-mapping

An OpenHIM mediator for mapping incoming content to a different format
https://jembi.github.io/openhim-mediator-mapping/
MIT License
3 stars 6 forks source link

Tb 181 make endpoints unique by pattern and method #210

Closed bradsawadye closed 8 months ago

bradsawadye commented 8 months ago

The endpoint is now unique by a combination of the endpoint's pattern and the http method. This allows us to have multiple endpoints with the same url but different http methods

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (e3847a4) 96.75% compared to head (cc929bc) 96.75%. Report is 3 commits behind head on master.

:exclamation: Current head cc929bc differs from pull request most recent head 14593f9. Consider uploading reports for the commit 14593f9 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #210 +/- ## ======================================= Coverage 96.75% 96.75% ======================================= Files 23 23 Lines 1078 1080 +2 ======================================= + Hits 1043 1045 +2 Misses 35 35 ``` | [Files](https://app.codecov.io/gh/jembi/openhim-mediator-mapping/pull/210?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=jembi) | Coverage Δ | | |---|---|---| | [src/db/models/endpoints.js](https://app.codecov.io/gh/jembi/openhim-mediator-mapping/pull/210?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=jembi#diff-c3JjL2RiL21vZGVscy9lbmRwb2ludHMuanM=) | `100.00% <100.00%> (ø)` | | | [src/middleware/initiate.js](https://app.codecov.io/gh/jembi/openhim-mediator-mapping/pull/210?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=jembi#diff-c3JjL21pZGRsZXdhcmUvaW5pdGlhdGUuanM=) | `98.76% <100.00%> (+0.01%)` | :arrow_up: |

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