Hi Fernando, Maybe it is just due to copy paste, but if there are spaces around the path like this, they would need to be present in the URL:
@Path(" articuloservice ") On Mon, Sep 30, 2024 at 1:31 PM Fernando <fernandoagu...@gmail.com> wrote: > Hi all!, > I am trying to implement a very simple rest web service following the > guide: > https://tomee.apache.org/tomee-8.0/examples/simple-rest.html > > and this is my code: > > @Path(" articuloservice ") > public class ArticulosService { > > @Inject > private ArticuloDao articuloDao; > > @GET > @Path("/saludar") > @Produces(MediaType.TEXT_PLAIN) > public String Saludo() { > return "Helloooo!"; > } > } > > I am trying to test the code using postman (GET) : > *http://localhost:8080/Hiper/articuloservice/saludar > <http://localhost:8080/Hiper/articuloservice/saludar>* > > getting the following response: "*The required resource is not available*" > > Maybe I am missing something?...any idea? > Thanks in advance! > Fernando >