mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
Merge branch 'feature/1.7-liujian' into 'main'
Add the openapiaddress field to the API portal to obtain detailed service information See merge request apipark/APIPark!304
This commit is contained in:
@@ -29,6 +29,7 @@ type ServiceDetail struct {
|
||||
Document string `json:"document"`
|
||||
Basic *ServiceBasic `json:"basic"`
|
||||
APIDoc string `json:"api_doc"`
|
||||
OpenAPIAddress string `json:"openapi_address"`
|
||||
MCPServerAddress string `json:"mcp_server_address"`
|
||||
MCPAccessConfig string `json:"mcp_access_config"`
|
||||
}
|
||||
|
||||
@@ -419,6 +419,7 @@ func (i *imlCatalogueModule) ServiceDetail(ctx context.Context, sid string) (*ca
|
||||
InvokeCount: invokeMap[s.Id],
|
||||
},
|
||||
APIDoc: apiDoc,
|
||||
OpenAPIAddress: fmt.Sprintf("%s/api/v1/service/apidoc/%s", strings.TrimSuffix(sitePrefix, "/"), s.Id),
|
||||
MCPServerAddress: mcpAccessAddress,
|
||||
MCPAccessConfig: mcpAccessConfig,
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user