View Javadoc
1   package org.imageconverter;
2   
3   import static org.springframework.boot.SpringApplication.run;
4   
5   import org.springframework.boot.autoconfigure.SpringBootApplication;
6   
7   import io.swagger.v3.oas.annotations.ExternalDocumentation;
8   import io.swagger.v3.oas.annotations.OpenAPIDefinition;
9   import io.swagger.v3.oas.annotations.enums.SecuritySchemeIn;
10  import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
11  import io.swagger.v3.oas.annotations.info.Contact;
12  import io.swagger.v3.oas.annotations.info.Info;
13  import io.swagger.v3.oas.annotations.info.License;
14  import io.swagger.v3.oas.annotations.security.SecurityScheme;
15  
16  /**
17   * Application's starter, just a main class
18   * 
19   * @author Fernando Romulo da Silva
20   */
21  @OpenAPIDefinition( //
22  		info = @Info( //
23  				title = "Image Converter API", //
24  				description = "This API allows convert image to text", //
25  				version = "1.0.0", //
26  				contact = @Contact( //
27  						name = "Fernando Romulo da Silva", //
28  						url = "https://github.com/fernando-romulo-silva/" //
29  				), //
30  				license = @License( //
31  						name = "Apache 2.0", //
32  						url = "https://opensource.org/licenses/Apache-2.0"//
33  				)//
34  		), //
35  		externalDocs = @ExternalDocumentation( //
36  				url = "https://github.com/fernando-romulo-silva/image-converter-service#readme", //
37  				description = "Project's Documentation" //
38  		) //
39  // servers = @Server( @ServerVariable)
40  )
41  @SecurityScheme( //
42  		name = "BASIC", //
43  		scheme = "basic", //
44  		type = SecuritySchemeType.HTTP, //
45  		in = SecuritySchemeIn.HEADER //
46  )
47  //
48  @SpringBootApplication
49  public class ImageServiceApplication { // NOPMD - UseUtilityClass: It's not a util class, it's a starter
50  
51      /**
52       * Main method
53       * 
54       * @param args the application arguments
55       */
56      public static void main(final String[] args) {
57  	
58  	run(ImageServiceApplication.class, args);
59      }
60  }