rop

by itstamen

itstamen / rop

rapid open platform

415 Stars 348 Forks Last release: Not found 123 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Introduction

ROP is the Rapid Open Platform ,thus like the TOP(Taobao Open Platform:http://api.taobao.com).

The rest url of ROP is thus like the following : 1)http://yourhost?method=rop.user.add&v=1.0&param1=value1&param=value2... 2)http://yourhost?method=rop.user.update&v=1.0&param1=value1&param=value2... ROP can router the request to the dest handler's api.You can use the @ServiceMethod("rop.user.add") annotation to mark the api method in the handler. Handler must be a add a @ServiceMethodBean annotation ,ServiceMethodBean has already annotated a @Service(Spring),So the Service Class would be a Spring Service Bean automaticly.

This is a right handler rest service api method:

import com.rop.annotation.ServiceMethod; import com.rop.annotation.ServiceMethodBean;

@ServiceMethodBean//<--1. must mark the annotation,let it be a Service Bean public class SampleRestService {

@ServiceMethod("rop.sample.method1")//

} The parameter's list of the api method must extends the RopRequest,and the Return parameter can be any Object. The Rop can marshaller the response to the xml or json format output,you can control the output format by "format" parameter.

Author and participants

1)Stamen XiaMen http://stamen.iteye.com/
2)Wangxiancai GuangZhou http://wangxiancai.iteye.com/

Good Luck! 2014! stame by 2014-07-16 Xiamen China

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.