Handle API-style requests #383

Closed
wants to merge 3 commits into
from

Projects

None yet

3 participants

@ben-ng
Contributor
ben-ng commented Jun 10, 2013

These changes allow Geddy to behave more like an API when dealing with certain content types. I added two helper methods in base_controller so that our scaffolding doesn't get too bulky.

You still need to make some minor changes to Backbone (howdy, #382) in order to get Geddy to do content negotiation correctly. See this gist for an example.

This is missing tests as I'm not sure how to write them yet.. Testing controllers is weird.

@ben-ng
Contributor
ben-ng commented Jun 10, 2013

p.s. the first few letters of the commit hash (ebdcbbc) make a cool jingle on the piano.

@ben-ng ben-ng referenced this pull request Jun 10, 2013
Closed

Doesn't support DELETE? #382

@Techwraith

Awesome, looks a little complicated though, I'll have to digest it a bit more. @mde, thoughts?

@mde
Contributor
mde commented Jun 10, 2013

This is good stuff. I think there may be some ways to make this a little bit cleaner, but this is an excellent first stab at it. I'll take a look at this over the next couple of days. I'd love for more people to chime in on this with ideas.

@ben-ng
Contributor
ben-ng commented Jul 7, 2013

Superseded by: #398

@ben-ng ben-ng closed this Jul 7, 2013
@ben-ng ben-ng deleted the ben-ng:api-patch branch Jul 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment