@Path(value="appstore/{shopGUID}/developer-apps")
public class DeveloperAppResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private DeveloperAppService |
developerAppService |
private OAuth2AppInstallationService |
installationService |
private OfficialAppService |
officialAppService |
private GUID |
shopGUID |
private ShopRepository |
shopRepository |
Constructor and Description |
---|
DeveloperAppResource(ShopRepository shopRepository,
DeveloperAppService developerAppService,
OAuth2AppInstallationService installationService,
OfficialAppService officialAppService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(DeveloperApp app) |
private DeveloperApp |
createApp(DeveloperAppEntity entity,
java.lang.String principalName,
java.util.Optional<java.util.Set<java.lang.String>> scopes) |
javax.ws.rs.core.Response |
createWithShopId(DeveloperApp app,
java.lang.String shopId,
java.lang.String scope)
Additional createApp endpoint for RAT tests.
|
private javax.ws.rs.core.Response |
doCreate(DeveloperApp app,
GUID shopGUID,
java.util.Optional<java.util.Set<java.lang.String>> scopes) |
javax.ws.rs.core.Response |
get(GUID appId) |
javax.ws.rs.core.Response |
getByDeveloperId(GUID shopGUID) |
javax.ws.rs.core.Response |
purge(GUID appId) |
javax.ws.rs.core.Response |
save(GUID appId,
DeveloperApp app)
Deprecated.
|
private final ShopRepository shopRepository
private final DeveloperAppService developerAppService
private final OAuth2AppInstallationService installationService
private final OfficialAppService officialAppService
@PathParam(value="shopGUID") private GUID shopGUID
@Inject public DeveloperAppResource(ShopRepository shopRepository, DeveloperAppService developerAppService, OAuth2AppInstallationService installationService, OfficialAppService officialAppService)
@GET @Produces(value="application/json") public javax.ws.rs.core.Response getByDeveloperId(@PathParam(value="shopGUID") GUID shopGUID)
@GET @Path(value="{appId}") @Produces(value="application/json") public javax.ws.rs.core.Response get(@PathParam(value="appId") GUID appId)
@PUT @Path(value="{appId}") @Consumes(value="application/json") @Produces(value="application/json") @Deprecated public javax.ws.rs.core.Response save(@PathParam(value="appId") GUID appId, DeveloperApp app)
@DELETE @Path(value="{appId}") public javax.ws.rs.core.Response purge(@PathParam(value="appId") GUID appId)
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(DeveloperApp app)
@POST @Path(value="{shopId}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createWithShopId(DeveloperApp app, @PathParam(value="shopId") java.lang.String shopId, @Nullable @QueryParam(value="scope") java.lang.String scope)
private javax.ws.rs.core.Response doCreate(DeveloperApp app, GUID shopGUID, java.util.Optional<java.util.Set<java.lang.String>> scopes)
private DeveloperApp createApp(DeveloperAppEntity entity, java.lang.String principalName, java.util.Optional<java.util.Set<java.lang.String>> scopes)