cn.dreampie.resource
类 TestResource
java.lang.Object
cn.dreampie.route.core.Resource
cn.dreampie.resource.ApiResource
cn.dreampie.resource.TestResource
@API(value="/tests")
public class TestResource
- extends ApiResource
Created by wangrenhui on 15/1/10.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestResource
public TestResource()
get
@GET(value="/:get")
public cn.dreampie.common.http.result.WebResult<List<User>> get(String get,
Date x)
post
@POST(value="/:post")
public Map post(String post,
Map<String,String> params)
put
@PUT(value="/:put")
public Map put(String put,
Map<String,String> map)
patch
@PATCH(value="/:patch")
public Map patch(String patch)
delete
@DELETE(value="/:delete")
public Map delete(String delete)
transaction
@POST(value="/transaction")
public void transaction()
upload
@POST(value="/file")
@FILE(renamer=MyFileRenamer.class)
public cn.dreampie.common.http.UploadedFile upload(cn.dreampie.common.http.UploadedFile testfile,
String des)
download
@GET(value="/file")
public File download()
test
@GET(value="/boom")
public boolean test()
Copyright © 2015. All rights reserved.