Interface UserAgent


  • @EndPoint
    @Path("/api")
    public interface UserAgent
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.vertx.core.json.JsonObject create​(io.vertx.core.json.JsonObject data)  
      Boolean delete​(String key)  
      io.vertx.core.json.JsonObject getById​(String key)
      modified by Hongwei at 2019/12/06 add get, create, update and delete methods for user domain.
      io.vertx.core.json.JsonObject information()  
      io.vertx.core.json.JsonObject logout()  
      io.vertx.core.json.JsonObject password​(io.vertx.core.json.JsonObject params)  
      io.vertx.core.json.JsonObject profile​(io.vertx.core.json.JsonObject params)  
      io.vertx.core.json.JsonObject update​(String key, io.vertx.core.json.JsonObject data)  
    • Method Detail

      • information

        @GET
        @Path("user")
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-INFORMATION")
        io.vertx.core.json.JsonObject information()
      • password

        @POST
        @Path("user/password")
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PASSWORD")
        io.vertx.core.json.JsonObject password​(@BodyParam
                                               io.vertx.core.json.JsonObject params)
      • profile

        @POST
        @Path("user/profile")
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PROFILE")
        io.vertx.core.json.JsonObject profile​(@BodyParam
                                              io.vertx.core.json.JsonObject params)
      • logout

        @POST
        @Path("user/logout")
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/O-LOGOUT")
        io.vertx.core.json.JsonObject logout()
      • getById

        @GET
        @Path("/user/:key")
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-USER/GET/ID")
        io.vertx.core.json.JsonObject getById​(@PathParam("key")
                                              String key)
        modified by Hongwei at 2019/12/06 add get, create, update and delete methods for user domain.
      • create

        @POST
        @Path("/user")
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-USER/ADD")
        io.vertx.core.json.JsonObject create​(@BodyParam
                                             io.vertx.core.json.JsonObject data)
      • update

        @PUT
        @Path("/user/:key")
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-PUT/USER/ID")
        io.vertx.core.json.JsonObject update​(@PathParam("key")
                                             String key,
                                             @BodyParam
                                             io.vertx.core.json.JsonObject data)
      • delete

        @DELETE
        @Path("/user/:key")
        @Address("\u1f08\u03c4\u03bb\u03b1\u03bd\u03c4\u1f76\u03c2 \u03bd\u1fc6\u03c3\u03bf\u03c2://\u0391\u03c3\u03c6\u03ac\u03bb\u03b5\u03b9\u03b1/X-DELETE/USER/ID")
        Boolean delete​(@PathParam("key")
                       String key)