@Consumes(value={"application/json","application/xml"})
@Produces(value={"application/json","application/xml"})
public interface BeaconResource
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(javax.ws.rs.core.UriInfo uriInfo,
com.dnastack.bob.service.dto.BeaconDto beacon) |
javax.ws.rs.core.Response |
delete(javax.ws.rs.core.UriInfo uriInfo,
String beaconId) |
Collection<com.dnastack.bob.service.dto.BeaconDto> |
show(String beaconIds)
Shows all the beacons or a specific beacon as determined by a param.
|
com.dnastack.bob.service.dto.BeaconDto |
showBeacon(String beaconId)
Shows beacon details.
|
javax.ws.rs.core.Response |
update(javax.ws.rs.core.UriInfo uriInfo,
String beaconId,
com.dnastack.bob.service.dto.BeaconDto beacon) |
@POST
javax.ws.rs.core.Response create(@Context
javax.ws.rs.core.UriInfo uriInfo,
com.dnastack.bob.service.dto.BeaconDto beacon)
@DELETE
@Path(value="/{beaconId}")
javax.ws.rs.core.Response delete(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="beaconId")
String beaconId)
@GET Collection<com.dnastack.bob.service.dto.BeaconDto> show(@QueryParam(value="beacon") String beaconIds)
beaconIds - beacon ID@GET
@Path(value="/{beaconId}")
com.dnastack.bob.service.dto.BeaconDto showBeacon(@PathParam(value="beaconId")
String beaconId)
beaconId - id of the beacon@PUT
@Path(value="/{beaconId}")
javax.ws.rs.core.Response update(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="beaconId")
String beaconId,
com.dnastack.bob.service.dto.BeaconDto beacon)
Copyright © 2016 DNAstack. All rights reserved.