All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springdoc.sample1.HelloController Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
package org.springdoc.sample1;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.v3.oas.annotations.tags.Tag;

@RestController
public class HelloController {

	@GetMapping(value = "/hello/{numTelco}")
	@ResponseStatus(HttpStatus.I_AM_A_TEAPOT)
	@Tag(name = "tea")
	public String index(@PathVariable("numTelco") String numTel, String adresse) {
		return "Greetings from Spring Boot!";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy