Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 568 Bytes
package org.serenity.manifest
import org.serenity.manifest.ejb.CargoAccess
import javax.ejb.LocalBean
import javax.ejb.Stateless
import javax.inject.Inject
import javax.ws.rs.GET
import javax.ws.rs.Path
import javax.ws.rs.Produces
import javax.ws.rs.core.MediaType
import javax.ws.rs.core.Response
@Stateless
@LocalBean
@Path('locations')
class LocationServices {
@Inject
CargoAccess cargoAccess
@GET
@Produces(MediaType.APPLICATION_JSON)
Response findAll() {
return Response.ok(cargoAccess.findAccessibleLocations()).build()
}
}