|
|
@@ -89,7 +89,9 @@ func (s *Service) GetServiceOpenAPI(ctx context.Context, in *metadata.GetService
|
|
|
|
|
|
// GetAllServicesOpenAPI get all services merged into one openapi document
|
|
|
// servicesList: specific services to include, pass nil or empty slice to include all services
|
|
|
-func (s *Service) GetAllServicesOpenAPI(ctx context.Context, servicesList []string) (string, error) {
|
|
|
+// title: the title for the merged API document
|
|
|
+// description: the description for the merged API document
|
|
|
+func (s *Service) GetAllServicesOpenAPI(ctx context.Context, servicesList []string, title, description string) (string, error) {
|
|
|
// Determine which services to process
|
|
|
var servicesToProcess []string
|
|
|
|
|
|
@@ -158,8 +160,8 @@ func (s *Service) GetAllServicesOpenAPI(ctx context.Context, servicesList []stri
|
|
|
// Generate merged OpenAPI document
|
|
|
gen := generator.NewOpenAPIv3Generator(plugin, generator.Configuration{
|
|
|
Version: utils.ToPointString("1.0"),
|
|
|
- Title: utils.ToPointString("All Services API"),
|
|
|
- Description: utils.ToPointString("Merged API documentation for all services"),
|
|
|
+ Title: utils.ToPointString(title),
|
|
|
+ Description: utils.ToPointString(description),
|
|
|
Naming: utils.ToPointString("proto"),
|
|
|
FQSchemaNaming: utils.ToPointBool(true),
|
|
|
EnumType: utils.ToPointString("integer"),
|