Giter Club home page Giter Club logo

rop's 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 Spring Bean,In other word ,the handler is marked the @Service
or @Component and so on.
   This is a right handler rest service api method:
@Service
public class SampleRestService {

    @ServiceMethod("rop.sample.method1")
    public Object method1(SampleRopRequest1 request1) {
        SampleRopResponse1 response = new SampleRopResponse1();
        response.setCreateTime("20120101010101");
        response.setUserId("1");
        return response;
    }
}
   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.
   stame by 2012-3-1 Xiamen China

rop's People

Watchers

James Cloos avatar ITechSky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.