-
Notifications
You must be signed in to change notification settings - Fork 71.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wip/enhance rest api #840
Wip/enhance rest api #840
Conversation
Merge @jasoncalabrese's patch for forcing recent data. Two days seems a little limiting, but meh. Conflicts: lib/entries.js
Current coverage is
|
@@ -213,6 +216,36 @@ function configure (app, wares, ctx) { | |||
}); | |||
} | |||
|
|||
api.delete('/entries/:id', function(req, res, next) { | |||
var ID_PATTERN = /^[a-f\d]{24}$/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ID_PATTERN
is repeated, don't need to assume 'sgv'
here, id should be enough
3 new Codacy issues: https://www.codacy.com/app/Nightscout/cgm-remote-monitor/pullRequest?prid=79324 |
@nightscout/dev, this adds
DELETE
capability to API, full CRUD.TWO days feels a little limiting, I'm thinking six - ten weeks is better. Thoughts?