api
This commit is contained in:
@@ -23,6 +23,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
@Configuration
|
||||
@EnableSwagger2
|
||||
public class SwaggerConfig {
|
||||
|
||||
@Bean
|
||||
public Docket createRestApi() {
|
||||
return new Docket(DocumentationType.SWAGGER_2)
|
||||
|
||||
@@ -41,6 +41,7 @@ public class ApiController implements ApiBaseController {
|
||||
public User getUser(@PathVariable Integer id) {
|
||||
return users.get(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
@PutMapping(value="/{id:\\d+}")
|
||||
public String putUser(@PathVariable Integer id, @RequestBody User user) {
|
||||
|
||||
Reference in New Issue
Block a user