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

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.

主站蜘蛛池模板: 宁远县| 峨山| 新安县| 晋州市| 林西县| 独山县| 营口市| 南岸区| 泸州市| 玛纳斯县| 民乐县| 山西省| 崇阳县| 伊通| 华宁县| 华阴市| 岱山县| 德令哈市| 潢川县| 南岸区| 洛浦县| 宜宾县| 洪江市| 蛟河市| 尉犁县| 屯留县| 扬中市| 年辖:市辖区| 高要市| 鸡泽县| 惠来县| 六枝特区| 洪湖市| 黎平县| 太康县| 五常市| 辽阳市| 武邑县| 阜南县| 双峰县| 泰顺县|