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

  • Mastering ASP.NET Web API
  • Mithun Pattankar Malendra Hurbuns
  • 75字
  • 2021-07-02 20:52:27

Level 1

Resources are exposed, but you still have an HTTP method. If you are at Level 0, then changing your web service to return a resource will take you from level 0 to level 1. You still have one HTTP method, but when your method is invoked, your service will pass back a resource:

    Request: 
    POST 
    diet/ate 
    Response 
    diet/ate/12789 
    Request: 
    POST 
    diet/ate 
    Response: 
    diet/ate/99000 

There is one endpoint diet/ate still, it returns many resources.

主站蜘蛛池模板: 象州县| 邻水| 吉木乃县| 松桃| 隆尧县| 门源| 班戈县| 迭部县| 云霄县| 于田县| 南平市| 巴里| 唐山市| 连云港市| 同仁县| 武汉市| 淳化县| 余姚市| 日喀则市| 临桂县| 大城县| 乐至县| 通化市| 玉山县| 福贡县| 南昌市| 灌阳县| 繁峙县| 丰城市| 措勤县| 甘南县| 孟津县| 罗平县| 敦化市| 泗阳县| 丽水市| 宁津县| 揭阳市| 乐至县| 平顶山市| 华容县|