@@ -17,25 +17,28 @@ import (
1717 model "github.com/kubeflow/model-registry/catalog/pkg/openapi"
1818)
1919
20+
21+
2022// ModelCatalogServiceAPIRouter defines the required methods for binding the api requests to a responses for the ModelCatalogServiceAPI
2123// The ModelCatalogServiceAPIRouter implementation should parse necessary information from the http request,
2224// pass the data to a ModelCatalogServiceAPIServicer to perform the required actions, then write the service results to the http response.
23- type ModelCatalogServiceAPIRouter interface {
25+ type ModelCatalogServiceAPIRouter interface {
2426 FindModels (http.ResponseWriter , * http.Request )
2527 FindModelsFilterOptions (http.ResponseWriter , * http.Request )
2628 FindSources (http.ResponseWriter , * http.Request )
2729 GetAllModelArtifacts (http.ResponseWriter , * http.Request )
2830 GetModel (http.ResponseWriter , * http.Request )
2931}
3032
33+
3134// ModelCatalogServiceAPIServicer defines the api actions for the ModelCatalogServiceAPI service
3235// This interface intended to stay up to date with the openapi yaml used to generate it,
3336// while the service implementation can be ignored with the .openapi-generator-ignore file
3437// and updated with the logic required for the API.
35- type ModelCatalogServiceAPIServicer interface {
36- FindModels (context.Context , []string , string , string , string , string , model.OrderByField , model.SortOrder , string ) (ImplResponse , error )
37- FindModelsFilterOptions (context.Context ) (ImplResponse , error )
38- FindSources (context.Context , string , string , model.OrderByField , model.SortOrder , string ) (ImplResponse , error )
39- GetAllModelArtifacts (context.Context , string , string , string , model.OrderByField , model.SortOrder , string , string ) (ImplResponse , error )
40- GetModel (context.Context , string , string ) (ImplResponse , error )
38+ type ModelCatalogServiceAPIServicer interface {
39+ FindModels (context.Context , []string , string , string , string , string , model.OrderByField , model.SortOrder , string ) (ImplResponse , error )
40+ FindModelsFilterOptions (context.Context ) (ImplResponse , error )
41+ FindSources (context.Context , string , string , model.OrderByField , model.SortOrder , string ) (ImplResponse , error )
42+ GetAllModelArtifacts (context.Context , string , string , string , model.OrderByField , model.SortOrder , string , string ) (ImplResponse , error )
43+ GetModel (context.Context , string , string ) (ImplResponse , error )
4144}
0 commit comments