-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
33 lines (25 loc) · 845 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package main
import (
"flag"
exasol_rest_api "main/pkg/exasol-rest-api"
)
// @title Exasol REST API
// @version 0.2.19
// @description This service is a proxy that wrapping up Exasol WebSockets library.
// @contact.name Exasol REST API GitHub Issues
// @contact.url https://github.com/exasol/exasol-rest-api/issues
// @license.name MIT License
// @license.url https://github.com/exasol/exasol-rest-api/blob/main/LICENSE
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
// @BasePath /api/v1
func main() {
appPropertiesPathCli := extractAppPropertiesPath()
exasol_rest_api.Run(*appPropertiesPathCli)
}
func extractAppPropertiesPath() *string {
appPropertiesPathCli := flag.String("application-properties-path", "", "Path to the application properties file.")
flag.Parse()
return appPropertiesPathCli
}