Beispiel #1
0
        private void SetupDocumentation()
        {
            //GETs
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "untappdId/{ID}", "URL",
                                                  "JSON payload",
                                                  typeof(Beer)));
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "beerId/{ID}", "URL",
                                                  "JSON payload",
                                                  typeof(Beer)));
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "breweryId/{ID}", "URL",
                                                  "JSON payload",
                                                  typeof(ICollection <Beer>)));

            //POSTs
            EndpointDocumentation.Add(new RestDoc("POST", UrlSegment + "add/", "JSON payload",
                                                  "BeerId - int",
                                                  typeof(Beer)));
            EndpointDocumentation.Add(new RestDoc("POST", UrlSegment + "update/", "JSON payload",
                                                  "Updated Beer - JSON payload", typeof(Beer)));
        }
        private void SetupDocumentation()
        {
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "userId/{ID}", "URL",
                                                  "Review Collection - JSON payload", typeof(ICollection <UserBeerRanking>)));
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "userId/{USERID}/beerId/{BEERID}", "URL",
                                                  "Review Collection - JSON payload", typeof(UserBeerRanking)));
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "beerId/{ID}", "URL", "Review Collection - Json",
                                                  typeof(ICollection <UserBeerRanking>)));
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "beerId/{BEERID}/userId/{USERID}", "URL",
                                                  "Review Collection - JSON payload", typeof(UserBeerRanking)));
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "untappdId/{ID}", "URL",
                                                  "Review Collection - JSON payload", typeof(ICollection <UserBeerRanking>)));

            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "breweryDbId/{ID}", "URL",
                                                  "Review Collection - JSON payload", typeof(ICollection <UserBeerRanking>)));

            EndpointDocumentation.Add(new RestDoc("POST", UrlSegment + "add/", "JSON payload", "Status - boolean",
                                                  typeof(bool)));
            EndpointDocumentation.Add(new RestDoc("POST", UrlSegment + "update/", "JSON payload",
                                                  "Updated Review - JSON payload", typeof(UserBeerRanking)));
        }
        private void SetupDocumentation()
        {
            //GETs
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "id/{ID}?GetBeers={bool}",
                                                  "URL",
                                                  "Brewery - JSON payload", typeof(Brewery)));
            EndpointDocumentation.Add(new RestDoc("GET",
                                                  UrlSegment + "untappdId/{ID}?GetBeers={bool}", "URL",
                                                  "Brewery - JSON payload", typeof(Brewery)));
            EndpointDocumentation.Add(new RestDoc("GET",
                                                  UrlSegment + "breweryDbId/{ID}?GetBeers={bool}", "URL",
                                                  "Brewery - JSON payload", typeof(Brewery)));
            EndpointDocumentation.Add(new RestDoc("GET", UrlSegment + "all?GetBeers={bool}", "URL",
                                                  "Brewery Collection - JSON payload", typeof(ICollection <Brewery>)));

            //POSTs
            EndpointDocumentation.Add(new RestDoc("POST", UrlSegment + "add", "JSON payload",
                                                  "Brewery - JSON payload",
                                                  typeof(Brewery)));
            EndpointDocumentation.Add(new RestDoc("POST", UrlSegment + "update", "JSON payload",
                                                  "Brewery - JSON payload", typeof(Brewery)));
        }
 private void SetupDocumentation()
 {
     EndpointDocumentation.Add(new RestDoc("GET",
                                           UrlSegment + "userId/{ID}", "URL", "UserInfo - JSON Payload",
                                           typeof(UserInfo)));
     EndpointDocumentation.Add(new RestDoc("GET",
                                           UrlSegment + "untappdId/{ID}", "URL",
                                           "UserInfo - JSON Payload", typeof(UserInfo)));
     EndpointDocumentation.Add(new RestDoc("GET",
                                           UrlSegment + "firstname/{name}", "URL",
                                           "UserInfo - JSON Payload", typeof(UserInfo)));
     EndpointDocumentation.Add(new RestDoc("GET",
                                           UrlSegment + "lastname/{name}", "URL",
                                           "UserInfo - JSON Payload", typeof(UserInfo)));
     EndpointDocumentation.Add(new RestDoc("GET",
                                           UrlSegment + "location/{location}", "URL",
                                           "UserInfo - JSON Payload", typeof(UserInfo)));
     EndpointDocumentation.Add(new RestDoc("POST", UrlSegment + "add/",
                                           "JSON Payload", "UserId - int",
                                           typeof(UserInfo)));
     EndpointDocumentation.Add(new RestDoc("POST",
                                           UrlSegment + "update/", "JSON Payload",
                                           "JSON Payload - Updated UserInfo", typeof(UserInfo)));
 }