-
Notifications
You must be signed in to change notification settings - Fork 294
Conversation
- V2 metrics routes now have a metrics section in the body of the response. - Fixed text case in v2/tests from "ScheduledTasks" to "scheduled_tasks" to be consistent with other responses. - Added V2 folders in rest and in rbody to hold v2 methods
- Made all v2 tribe routes to be /v2/tribes (made tribe plural) - Changed V2/tribes/member/:name to be V2/tribes/members/:name (made member plural)
Created V2 REST API Routes in feature branch snap/v2_rest_api
638aaad
to
d09e01a
Compare
d09e01a
to
389d7fe
Compare
Implements the API interface to v1.
6c191eb
to
da7e778
Compare
The review of this PR has been done in #1474, this PR is just a rebase in order to have clear commits in the log. |
0f84e53
to
2e31609
Compare
ccc51c0
to
15c1de2
Compare
Adds version 2 of the rest api in order to have more consistent responses, errors, and conform to REST better. - Add package v2/mock - Add medium tests for v2 - Implement API interface for v2 - Implement v2 routes
15c1de2
to
e741f41
Compare
) | ||
|
||
const ( | ||
ErrPluginAlreadyLoaded = "plugin is already loaded" |
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.
Let's take this opportunity to make the errors consistent in terms of language, punctuation and capitalization.
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.
Done.
const ( | ||
ErrPluginAlreadyLoaded = "plugin is already loaded" | ||
ErrTaskNotFound = "Task not found" | ||
ErrTaskDisabledNotRunnable = "Task is disabled. Cannot be started" |
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.
"Cannot be started" can probably be dropped.
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.
Done.
@IRCody, @nanliu, @candysmurf can we get another LGTM? |
LGTM 👍 |
Summary of changes:
@intelsdi-x/snap-maintainers