Skip to content

a RESTful API request, response entity and status code of response body, auto creation tool based-on apidocjs

Notifications You must be signed in to change notification settings

xuyt11/XHttpWrapper

Repository files navigation

1 这是一个解析器,解析由apidoc.js生成的API接口的HTML页面;
2 解析后,生成API接口中请求方法,请求路径,请求参数,请求头与响应实体等等的接口数据.
3 再由这些接口数据,生成Android中的请求方法,与响应实体类.
4 由于这些只是自己在开发公司项目中做的一个东东,所以,很多东西都是只符合当前项目,若要拿去使用,可以自己更改.

release version 0.6 future

  • 重构xtemp解析器,
    • 使得foreach标签能够多层嵌套,去除掉list等标签

release version 0.5

1、add prefix(t) to template tags;
2、add volley and asynchttp lib x-http-wrapper template file;
3、refactor input and output type enum;-->add map type
4、add is_polymerization fun;
5、add guide;

release version 0.4

add request param template type;
添加了请求参数组模板类型,用于简化请求参数的个数过多的情况;

release version 0.3

不再解析apidocjs的和HTML页面中的数据了,直接解析api_data.json;

release version 0.2

实现了转换文件的模板化;

xha

http api 请求的对外文件,所有的请求都通过该文件进行访问;

xreq

http request 请求的类别文件,包含同一分类中的所有的请求;

xres

http response entity 每一个请求中的响应实体类;

xbres

http base response 请求响应的base文件,包含了各个response中所有的error;

xsc

http response status code 请求响应的内部的状态码文件;

release version 0.1

实现了最基本的,将RESTful url转换成请求方法与响应实体类,与响应状态码的功能;

About

a RESTful API request, response entity and status code of response body, auto creation tool based-on apidocjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages