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,io.vertigo.vega.webservice.WebServices
@PathPrefix("/x/accounts")
public final class AccountWebServices
extends Object
implements io.vertigo.vega.webservice.WebServices
Webservices for account extension.
- Author:
- npiedeloup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.vertigo.account.account.AccountgetAccount(String id) Gets an account by its id.io.vertigo.account.account.AccountGroupGets a group by its id.io.vertigo.datastore.filestore.model.VFileGets an account photo by its id.Extension config.getHelp()Extension help.getStats()Extension stats.Extension status (code 200 or 500)
-
Constructor Details
-
AccountWebServices
public AccountWebServices()
-
-
Method Details
-
getAccount
@GET("/api/{id}") @AnonymousAccessAllowed public io.vertigo.account.account.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 io.vertigo.account.account.AccountGroup getAccountGroup(@PathParam("id") String id) Gets a group by its id.- Parameters:
id- the group id.- Returns:
- the group
-
getStatus
Extension status (code 200 or 500)- Returns:
- "OK" or error message
-
getStats
Extension stats.- Returns:
- "OK" or error message
-
getConfig
Extension config.- Returns:
- Config object
-
getHelp
Extension help.- Returns:
- Help object
-