官术网_书友最值得收藏!

Defining the RESTful API controller for city resource

For the city resource we would need the following APIs:

  • Get cities for a given country
  • Add a new city to the country
  • Delete the city from the country

The code for this controller can be found in the CityAPIController class and the tests for the API controller can be found in the CityAPIControllerTest class, which is available in the source code of this book.

主站蜘蛛池模板: 安吉县| 吉首市| 浙江省| 肇源县| 沛县| 墨江| 东方市| 公主岭市| 桦甸市| 涟水县| 旅游| 潞城市| 铜梁县| 扬州市| 留坝县| 九江县| 马山县| 兰坪| 沂水县| 镇原县| 阿荣旗| 铅山县| 牡丹江市| 长沙县| 开江县| 湘西| 孟村| 大同县| 准格尔旗| 浦东新区| 淳安县| 金坛市| 怀来县| 读书| 沽源县| 日喀则市| 玛多县| 青田县| 门头沟区| 丁青县| 南雄市|