-2
Good evening, I’m new to Webservice and I have the following question, how do I make a response to the class created in java?
So far I’ve done it in my code:
package alarme;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class BotaoController {
public BotaoController(){
Botao teste = new Botao(1,true);
}
@RequestMapping(value = "/botao/{id}", method = RequestMethod.GET)
}