Skip to content
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

Merged
merged 7 commits into from
Aug 25, 2015
Merged

Wip/enhance rest api #840

merged 7 commits into from
Aug 25, 2015

Conversation

bewest
Copy link
Member

@bewest bewest commented Aug 24, 2015

@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?

bewest added 3 commits August 23, 2015 18:02
Merge @jasoncalabrese's patch for forcing recent data.
Two days seems a little limiting, but meh.
Conflicts:
	lib/entries.js
@codecov-io
Copy link

Current coverage is 82.61%

Merging #840 into dev will increase coverage by +0.20% as of 74c71f4

@@              dev    #840   diff @@
=====================================
  Files          59      59       
  Stmts        3951    3962    +11
  Branches        0       0       
  Methods         0       0       
=====================================
+ Hit          3256    3273    +17
  Partial         0       0       
+ Missed        695     689     -6

Review entire Coverage Diff as of 74c71f4


Uncovered Suggestions

  1. +0.35% via lib/mqtt.js#128...141
  2. +0.30% via lib/mqtt.js#292...303
  3. +0.30% via .../js/profileeditor.js#323...334
  4. See 7 more...

Powered by Codecov. Updated on successful CI builds.

@@ -213,6 +216,36 @@ function configure (app, wares, ctx) {
});
}

api.delete('/entries/:id', function(req, res, next) {
var ID_PATTERN = /^[a-f\d]{24}$/;
Copy link
Member

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

@jasoncalabrese
Copy link
Member

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.

3 participants