
api
冰凌花花
欢迎来到我的博客, 本人乃互联网行业一枚小小的螺丝钉—非典型程序员妹子.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Grape-demo1
Grape,为API设计而生DSL(Domain Specified Language),官网地址: http://intridea.github.io/grapehttp://intridea.github.io/grape/docs/index.html(1)描述性的API构建方式,代码可读性非常强(2)提供了构建Restful API的一套工具,如参数约束,路径约束,原创 2015-10-08 16:07:19 · 570 阅读 · 0 评论 -
grape api参数为array
https://github.com/ruby-grape/grapehttps://github.com/ruby-grape/grape#paramrequires :subject_id_list, type: Array[String], allow_blank: false请求的时候只能依次请求http://111.11.1.1原创 2016-03-04 14:31:13 · 863 阅读 · 0 评论 -
access json.jbuilder file in api
Missing template api/v2/subjects/fetch_subject, api/base/fetch_subject, application/fetch_subject with {:locale=>[:"zh-CN"], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder,原创 2017-01-23 12:59:48 · 502 阅读 · 0 评论