@Path(value="/api/auth/scope-registration/v1.[\\d]+/scopes") @Consumes(value="application/json") @Produces(value="application/json") @ApplicationPath(value="/scopes") public class ScopesApi extends Object implements org.wso2.msf4j.Microservice
| Constructor and Description |
|---|
ScopesApi() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteScope(String name,
org.wso2.msf4j.Request request) |
javax.ws.rs.core.Response |
getScope(String name,
org.wso2.msf4j.Request request) |
javax.ws.rs.core.Response |
getScopes(Integer offset,
Integer limit,
org.wso2.msf4j.Request request) |
javax.ws.rs.core.Response |
isScopeExists(String name,
org.wso2.msf4j.Request request) |
javax.ws.rs.core.Response |
registerScope(ScopeDTO scope,
org.wso2.msf4j.Request request) |
javax.ws.rs.core.Response |
updateScope(ScopeDTO scope,
String name,
org.wso2.msf4j.Request request) |
@DELETE
@Path(value="/{name}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response deleteScope(@PathParam(value="name")
String name,
@Context
org.wso2.msf4j.Request request)
throws NotFoundException
NotFoundException@GET
@Path(value="/{name}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response getScope(@PathParam(value="name")
String name,
@Context
org.wso2.msf4j.Request request)
throws NotFoundException
NotFoundException@GET
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response getScopes(@DefaultValue(value="0") @QueryParam(value="offset")
Integer offset,
@DefaultValue(value="25") @QueryParam(value="limit")
Integer limit,
@Context
org.wso2.msf4j.Request request)
throws NotFoundException
NotFoundException@HEAD
@Path(value="/{name}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response isScopeExists(@PathParam(value="name")
String name,
@Context
org.wso2.msf4j.Request request)
throws NotFoundException
NotFoundException@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response registerScope(ScopeDTO scope, @Context org.wso2.msf4j.Request request) throws NotFoundException
NotFoundException@PUT
@Path(value="/{name}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateScope(ScopeDTO scope,
@PathParam(value="name")
String name,
@Context
org.wso2.msf4j.Request request)
throws NotFoundException
NotFoundExceptionCopyright © 2018 WSO2. All rights reserved.