package io.xjhub.samplecontacts;

import java.math.BigInteger;
import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;

final class Api {
    // Prevents accidentally instantiating this class
    private Api() {}

    static final String API_URL = "https://inloop-contacts.appspot.com/_ah/api/contactendpoint/v1/";

    static class ContactWrapper {
        final List<Contact> items;

        public ContactWrapper(List<Contact> items) {
            this.items = items;
        }
    }

    static class Contact {
        final BigInteger id;
        final String name;
        final String phone;
        final String pictureUrl;
        final String kind;

        public Contact(BigInteger id, String name, String phone, String pictureUrl, String kind) {
            this.id = id;
            this.name = name;
            this.phone = phone;
            this.pictureUrl = pictureUrl;
            this.kind = kind;
        }
    }

    interface ContactService {
        @GET("contact")
        Call<ContactWrapper> listContacts();
    }
}

@@ -31,37 +31,8 @@
 s;%0A%0A
-import java.math.BigInteger;%0A
 impo
@@ -100,16 +100,44 @@
 ttp.GET;
+%0Aimport retrofit2.http.Path;
 %0A%0Afinal 
@@ -539,26 +539,20 @@
   final 
-BigInteger
+Long
  id;%0A   
@@ -691,18 +691,12 @@
 act(
-BigInteger
+Long
  id,
@@ -942,101 +942,634 @@
     
-interface ContactService %7B%0A        @GET(%22contact%22)%0A        Call%3CContactWrapper%3E listContacts(
+static class OrderWrapper %7B%0A        final List%3COrder%3E items;%0A%0A        public OrderWrapper(List%3COrder%3E items) %7B%0A            this.items = items;%0A        %7D%0A    %7D%0A%0A    static class Order %7B%0A        final String name;%0A        final int count;%0A        final String kind;%0A%0A        public Order(String name, int count, String kind) %7B%0A            this.name = name;%0A            this.count = count;%0A            this.kind = kind;%0A        %7D%0A    %7D%0A%0A    interface ContactService %7B%0A        @GET(%22contact%22)%0A        Call%3CContactWrapper%3E listContacts();%0A%0A        @GET(%22order/%7Bid%7D%22)%0A        Call%3COrderWrapper%3E listOrders(@Path(%22id%22) long contactId
 );%0A 

Add Order into Api