Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPI generated API stub

Why don't I see my generated APIs? I go to http://localhost:8080 or http://localhost:8080/swagger-ui.html, but I get a message saying This localhost page can't be found.

Can anyone tell me why?

There's no implementation here. It's just the generated files. That should be enough to produce the swagger documentation. It always has been before for me.

Overview

This code was generated by the OpenAPI Generator project. By using the OpenAPI-Spec, you can easily generate an API stub. This is an example of building API stub interfaces in Java using the Spring framework.

The stubs generated can be used in your existing Spring-MVC or Spring-Boot application to create controller endpoints by adding @Controller classes that implement the interface. Eg:

@Controller
public class PetController implements PetApi {
// implement all PetApi methods
}

You can also use the interface to create Spring-Cloud Feign clients.Eg:

@FeignClient(name="pet", url="http://petstore.swagger.io/v2")
public interface PetClient extends PetApi {

}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages