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

WIP: Add unique index on endpoint method and pattern combo #143

Open MattyJ007 opened 3 years ago

MattyJ007 commented 3 years ago

The mapping should allow multiple endpoints to be created with the same pattern if they work on different request methods. This is needed as logic for: GET /test vs POST /test PUT /test/:id vs DELETE /test/:id Are completely different yet their url path patterns are the same. The mapping mediator already caters to adding routes per HTTP Method

DEB-8

codecov[bot] commented 3 years ago

Codecov Report

Merging #143 (1360636) into master (9292c26) will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #143      +/-   ##
==========================================
+ Coverage   97.16%   97.17%   +0.01%     
==========================================
  Files          21       21              
  Lines         951      957       +6     
==========================================
+ Hits          924      930       +6     
  Misses         27       27              
Impacted Files Coverage Δ
src/db/models/endpoints.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9292c26...1360636. Read the comment docs.