@@ -17,28 +17,25 @@ import (
1717 model "github.com/kubeflow/model-registry/catalog/pkg/openapi"
1818)
1919
20-
21-
2220// ModelCatalogServiceAPIRouter defines the required methods for binding the api requests to a responses for the ModelCatalogServiceAPI
2321// The ModelCatalogServiceAPIRouter implementation should parse necessary information from the http request,
2422// pass the data to a ModelCatalogServiceAPIServicer to perform the required actions, then write the service results to the http response.
25- type ModelCatalogServiceAPIRouter interface {
23+ type ModelCatalogServiceAPIRouter interface {
2624 FindModels (http.ResponseWriter , * http.Request )
2725 FindModelsFilterOptions (http.ResponseWriter , * http.Request )
2826 FindSources (http.ResponseWriter , * http.Request )
2927 GetAllModelArtifacts (http.ResponseWriter , * http.Request )
3028 GetModel (http.ResponseWriter , * http.Request )
3129}
3230
33-
3431// ModelCatalogServiceAPIServicer defines the api actions for the ModelCatalogServiceAPI service
3532// This interface intended to stay up to date with the openapi yaml used to generate it,
3633// while the service implementation can be ignored with the .openapi-generator-ignore file
3734// and updated with the logic required for the API.
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 )
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 )
4441}
0 commit comments