@Path(value="/accounts/u/{username:[a-z\\d_]{3,20}}")
public interface AccountResource
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_PATH |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
get()
Retrieves a user account.
|
javax.ws.rs.core.Response |
put(Account account)
Creates or updates a user account.
|
static final String SERVICE_PATH
@GET
@Produces(value={"application/vnd.zanata.account+xml","application/vnd.zanata.account+json"})
javax.ws.rs.core.Response get()
@PUT
@Consumes(value={"application/vnd.zanata.account+xml","application/vnd.zanata.account+json"})
javax.ws.rs.core.Response put(Account account)
account - The account information to create/update.Copyright © 2018 Zanata Project. All rights reserved.