Skip to content

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

Draft
MattyJ007 wants to merge 1 commit into
masterfrom
DEB-8-support-unique-method-and-pattern-combo
Draft

WIP: Add unique index on endpoint method and pattern combo#143
MattyJ007 wants to merge 1 commit into
masterfrom
DEB-8-support-unique-method-and-pattern-combo

Conversation

@MattyJ007

Copy link
Copy Markdown
Contributor

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

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

codecov Bot commented Mar 8, 2021

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant