[{"id":"840f0737-df1d-47ae-bb0a-359b01fe0608","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"d5d9cdef-8854-4505-89be-a2bbc3cb4482","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"3dc3dd55-35b0-4d23-bf62-47bc3650e4ee","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"80d84fbc-d0f8-4e4a-947f-e3e4de9b49b2","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]},{"id":"9152b7ca-0186-4fe3-a26f-5a05f322db07","tags":[{"product":null,"links":null,"id":"adf72f47-7f61-4239-8392-b9bcc127fa80","name":"\u65B0\u589E","color":"green","productId":"0995490e-43fc-4d6e-bc8d-8e66f38b0c63"}]}]
        
(Showing Draft Content)

API集成

Wyn 提供 RESTful API,很多操作均可通过调用 API 完成,例如在后台管理中创建角色、删除角色等,通过浏览器调试窗格就可以看到实际的 RESTful API 调用。

产品 API 调用场景,请参考:http://wyn.grapecity.com.cn/playground/index.html

操作方法

例如,创建角色时的 API 调用示例,如下图:

image

删除角色的调用示例:

image

RESTful API 通过语义化的方式请求资源URL,并根据返回的语义来判断这次操作失误返回类型和效果。

RESTful API 拥有清楚简短的URL,可读性非常强。用各个不同的 HTTP 动词(GET、POST、PUT 和 DELETE 方法 )来表示对资源的各种

行为。

如需查看具体的 API 介绍,请在右上角切换至 API 文档。