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

HTTP ServiceInterface #203

Merged
merged 16 commits into from
Feb 4, 2016
Merged

HTTP ServiceInterface #203

merged 16 commits into from
Feb 4, 2016

Conversation

junosuarez
Copy link
Contributor

You can run this with npm start and then execute the following commands (using httpie because I can never remember curl syntax without man pages)

~/dev
 5:58> http POST http://localhost:8000/radar/service op=get to=status:/foo/bar
HTTP/1.1 200 OK
Connection: keep-alive
Date: Fri, 15 Jan 2016 01:58:36 GMT
Transfer-Encoding: chunked

{"op":"get","to":"status:/foo/bar","value":{}}


 ~/dev
 5:58> http POST http://localhost:8000/radar/service op=set to=status:/foo/bar key=key value=value
HTTP/1.1 200 OK
Connection: keep-alive
Date: Fri, 15 Jan 2016 01:58:52 GMT
Transfer-Encoding: chunked

{"op":"ack","value":"cf777f53-16c0-4971-8cfd-47e176ed53ea"}


 ~/dev
 5:58> http POST http://localhost:8000/radar/service op=get to=status:/foo/bar
HTTP/1.1 200 OK
Connection: keep-alive
Date: Fri, 15 Jan 2016 01:58:56 GMT
Transfer-Encoding: chunked

{"op":"get","to":"status:/foo/bar","value":{"key":"value"}}

@junosuarez junosuarez changed the title [WIP] HTTP ServiceInterface HTTP ServiceInterface Feb 1, 2016
@junosuarez
Copy link
Contributor Author

Ready for review


## GET

E.g. `http://localhost:8000/radar/service?to=status:/segment/foobar`
Copy link
Contributor

Choose a reason for hiding this comment

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

s/segment/account

@vanchi-zendesk
Copy link
Contributor

👍

junosuarez added a commit that referenced this pull request Feb 4, 2016
@junosuarez junosuarez merged commit 212f3a7 into master Feb 4, 2016
@junosuarez junosuarez deleted the jden/service_interface branch February 4, 2016 01:07
@junosuarez junosuarez mentioned this pull request Feb 4, 2016
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.

2 participants