Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

api: implement query parameters #814

Merged
merged 1 commit into from
Aug 27, 2014
Merged

Conversation

jonboulle
Copy link
Contributor

The query parameters here need to be implemented.

@jonboulle jonboulle self-assigned this Aug 25, 2014
@bcwaldon bcwaldon added this to the v0.8.0 milestone Aug 25, 2014
@@ -52,13 +62,23 @@ func (sr *stateResource) list(rw http.ResponseWriter, req *http.Request) {
sendResponse(rw, http.StatusOK, &page)
}

func getUnitStatePage(cAPI client.API, tok PageToken) (*schema.UnitStatePage, error) {
func getUnitStatePage(cAPI client.API, machineID, unitName string, tok PageToken) (*schema.UnitStatePage, error) {
states, err := cAPI.UnitStates()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out cAPI.UnitStates(name) doesn't exist as I thought it already did... Will come back and implement it later as an optimization

@bcwaldon
Copy link
Contributor

@jonboulle LGTM

@bcwaldon bcwaldon closed this Aug 27, 2014
@bcwaldon bcwaldon reopened this Aug 27, 2014
jonboulle added a commit that referenced this pull request Aug 27, 2014
api: implement query parameters
@jonboulle jonboulle merged commit 427120d into coreos:master Aug 27, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants