@Path(value="gateways")
public interface IGatewayResource
| Modifier and Type | Method and Description |
|---|---|
io.apiman.manager.api.beans.gateways.GatewayBean |
create(io.apiman.manager.api.beans.gateways.NewGatewayBean bean)
This endpoint is called to create a new Gateway.
|
void |
delete(String gatewayId)
This endpoint deletes a Gateway by its unique ID.
|
io.apiman.manager.api.beans.gateways.GatewayBean |
get(String gatewayId)
Call this endpoint to get the details of a single configured Gateway.
|
List<io.apiman.manager.api.beans.summary.GatewaySummaryBean> |
list()
This endpoint returns a list of all the Gateways that have been configured.
|
io.apiman.manager.api.beans.summary.GatewayTestResultBean |
test(io.apiman.manager.api.beans.gateways.NewGatewayBean bean)
This endpoint is used to test the Gateway's settings prior to either creating
or updating it.
|
void |
update(String gatewayId,
io.apiman.manager.api.beans.gateways.UpdateGatewayBean bean)
Use this endpoint to update an existing Gateway.
|
@PUT
@Produces(value="application/json")
@Consumes(value="application/json")
io.apiman.manager.api.beans.summary.GatewayTestResultBean test(io.apiman.manager.api.beans.gateways.NewGatewayBean bean)
throws NotAuthorizedException
bean - Details of the Gateway for testing.NotAuthorizedException - when attempt to do something user is not authorized to do@GET @Produces(value="application/json") List<io.apiman.manager.api.beans.summary.GatewaySummaryBean> list() throws NotAuthorizedException
NotAuthorizedException - when attempt to do something user is not authorized to do@POST
@Consumes(value="application/json")
@Produces(value="application/json")
io.apiman.manager.api.beans.gateways.GatewayBean create(io.apiman.manager.api.beans.gateways.NewGatewayBean bean)
throws GatewayAlreadyExistsException,
NotAuthorizedException
bean - The details of the new Gateway.GatewayAlreadyExistsException - when the gateway already existsNotAuthorizedException - when attempt to do something user is not authorized to do@GET
@Path(value="{gatewayId}")
@Produces(value="application/json")
io.apiman.manager.api.beans.gateways.GatewayBean get(@PathParam(value="gatewayId")
String gatewayId)
throws GatewayNotFoundException,
NotAuthorizedException
gatewayId - The ID of the Gateway to get.GatewayNotFoundException - when gateway is not foundNotAuthorizedException - when attempt to do something user is not authorized to do@PUT
@Path(value="{gatewayId}")
@Consumes(value="application/json")
void update(@PathParam(value="gatewayId")
String gatewayId,
io.apiman.manager.api.beans.gateways.UpdateGatewayBean bean)
throws GatewayNotFoundException,
NotAuthorizedException
gatewayId - The ID of the Gateway to update.bean - The Gateway information to update. All fields are optional.GatewayNotFoundException - when gateway is not foundNotAuthorizedException - when attempt to do something user is not authorized to do@DELETE
@Path(value="{gatewayId}")
void delete(@PathParam(value="gatewayId")
String gatewayId)
throws GatewayNotFoundException,
NotAuthorizedException
gatewayId - The ID of the Gateway to delete.GatewayNotFoundException - when gateway is not foundNotAuthorizedException - when attempt to do something user is not authorized to doCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.