Skip to content

Instantly share code, notes, and snippets.

@corinnekrych
Created January 24, 2014 12:34
Show Gist options
  • Select an option

  • Save corinnekrych/8596447 to your computer and use it in GitHub Desktop.

Select an option

Save corinnekrych/8596447 to your computer and use it in GitHub Desktop.
[tabs]
[names="Java,iOS,JavaScript"]
[source,java]
----
* public class Car {
* @RecordId
* public Long id;
* public String make;
* public String model;
* public String toString() {
* return String.format("{make:%s, model:%s}", make, model);
* }
* }
*
* Pipe<Car> pipe = new RestAdapter<Car>(Car.class, new URL("http://www.server.com/car"));
----
[source,ios]
----
* AGPipeline* pipe = [AGPipeline pipelineWithBaseURL:[NSURL URLWithString:@"http://www.server.com/car"]];
----
* [source,javascript]
----
* TODO
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment