@Path(value="/bo") public class APIBO extends APIBase
| Constructor and Description |
|---|
APIBO() |
| Modifier and Type | Method and Description |
|---|---|
<T extends BaseTO> |
create(BaseTO in) |
AppTO |
createApp(String name,
HttpServletRequest request) |
ContainerTO |
createContainer(String name,
HttpServletRequest request) |
UserTO |
createUser(String email,
String password,
HttpServletRequest request) |
<T extends BaseTO> |
get(String baseUuid) |
ContainerTO |
getContainer(String uuid) |
List<AppTO> |
getMyApps(HttpServletRequest request) |
UserTO |
getUserByEmail(String email) |
UserTO |
getUserByUuid(String baseUuid) |
areYoutThere@Path(value="/getContainer") @GET @Produces(value="application/json") @Consumes(value="text/plain") public ContainerTO getContainer(@QueryParam(value="uuid") String uuid) throws ServiceException
ServiceException@Path(value="/get") @GET @Produces(value="application/json") @Consumes(value="text/plain") public <T extends BaseTO> BaseTO get(@QueryParam(value="base-uuid") String baseUuid) throws ServiceException
ServiceException@Path(value="/getUserByUuid") @GET @Produces(value="application/json") @Consumes(value="text/plain") public UserTO getUserByUuid(@QueryParam(value="uuid") String baseUuid) throws ServiceException
ServiceException@Path(value="/getUserByEmail") @GET @Produces(value="application/json") @Consumes(value="text/plain") public UserTO getUserByEmail(@QueryParam(value="email") String email) throws ServiceException
ServiceException@Path(value="/create") @POST @Produces(value="application/json") @Consumes(value="application/json") public <T extends BaseTO> BaseTO create(BaseTO in) throws ServiceException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
ServiceExceptioncom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOException@Path(value="/createUser") @POST @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public UserTO createUser(@FormParam(value="email") String email, @FormParam(value="password") String password, @Context HttpServletRequest request) throws APIError, ServiceException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
APIErrorServiceExceptioncom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOException@Path(value="/createContainer") @POST @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public ContainerTO createContainer(@FormParam(value="name") String name, @Context HttpServletRequest request) throws ServiceException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
ServiceExceptioncom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOException@Path(value="/createApp") @POST @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public AppTO createApp(@FormParam(value="name") String name, @Context HttpServletRequest request) throws ServiceException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
ServiceExceptioncom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOException@Path(value="/getMyApps") @POST @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public List<AppTO> getMyApps(@Context HttpServletRequest request) throws ServiceException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
ServiceExceptioncom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionCopyright © 2017. All rights reserved.