alan-turing-institute / DTBase

A starting point from which digital twins can be developed.
MIT License
10 stars 4 forks source link

Add 409 response when adding an existing measure #268

Closed EdwinB12 closed 3 months ago

EdwinB12 commented 3 months ago

Previously we didn't catch responses for duplicate measures. This PR means we return a 409. This is consistent with how we deal with scenarios and i think we want to same behaviour with measures.

EdwinB12 commented 3 months ago

Just seen you've already done this in #265 ! There is a test here though so I think after 265 is merged, this should just leave the test to be commited.

EdwinB12 commented 3 months ago

Nevermind, #265 also has a test! I'll close this PR, its already been implemented :)