Class AccountWebServices
- java.lang.Object
-
- io.vertigo.social.webservices.account.AccountWebServices
-
- All Implemented Interfaces:
io.vertigo.core.node.component.Component
,io.vertigo.core.node.component.CoreComponent
,WebServices
@PathPrefix("/x/accounts") public final class AccountWebServices extends Object implements WebServices
Webservices for account extension.- Author:
- npiedeloup
-
-
Constructor Summary
Constructors Constructor Description AccountWebServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Account
getAccount(String id)
Gets an account by its id.AccountGroup
getAccountGroup(String id)
Gets a group by its id.io.vertigo.datastore.filestore.model.VFile
getAccountPhoto(String id)
Gets an account photo by its id.Map<String,Object>
getConfig()
Extension config.String
getHelp()
Extension help.Map<String,Object>
getStats()
Extension stats.String
getStatus()
Extension status (code 200 or 500)
-
-
-
Method Detail
-
getAccount
@GET("/api/{id}") @AnonymousAccessAllowed public Account getAccount(@PathParam("id") String id)
Gets an account by its id.- Parameters:
id
- the account id.- Returns:
- the account
-
getAccountPhoto
@GET("/api/{id}/photo") @AnonymousAccessAllowed public io.vertigo.datastore.filestore.model.VFile getAccountPhoto(@PathParam("id") String id)
Gets an account photo by its id.- Parameters:
id
- account id.- Returns:
- the photo of an account
-
getAccountGroup
@GET("/api/groups/{id}") @AnonymousAccessAllowed public AccountGroup getAccountGroup(@PathParam("id") String id)
Gets a group by its id.- Parameters:
id
- the group id.- Returns:
- the group
-
getStatus
@GET("/infos/status") @AnonymousAccessAllowed public String getStatus()
Extension status (code 200 or 500)- Returns:
- "OK" or error message
-
getStats
@GET("/infos/stats") @AnonymousAccessAllowed public Map<String,Object> getStats()
Extension stats.- Returns:
- "OK" or error message
-
getConfig
@GET("/infos/config") @AnonymousAccessAllowed public Map<String,Object> getConfig()
Extension config.- Returns:
- Config object
-
getHelp
@GET("/infos/help") @AnonymousAccessAllowed public String getHelp()
Extension help.- Returns:
- Help object
-
-