Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enable API Hub #485

Merged
merged 26 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a1314a0
feat: add support for api hub #461
srinandan May 17, 2024
1768a15
WIP: add api hubs apis #461
srinandan May 22, 2024
0bba60a
WIP: add api hubs apis #461
srinandan May 25, 2024
ef193e0
WIP: add api hubs apis #461
srinandan May 30, 2024
60e18c5
Merge branch 'issue461' into apihub
srinandan Jun 20, 2024
1870a89
feat: enable api hub apis
srinandan Jun 21, 2024
b0648d2
feat: enable other apis for API Hub
srinandan Jun 21, 2024
b9c4f96
feat: enable runtime attachments to API Hub
srinandan Jun 21, 2024
aacd87b
feat: enable prj registrations to API Hub
srinandan Jun 21, 2024
68ba40e
chore: add unit tests for API Hub
srinandan Jun 21, 2024
545758e
feat: create apihub instances
srinandan Jun 21, 2024
508f782
feat: adds support for updates
srinandan Jun 24, 2024
7b7d601
chore: gofumpt files
srinandan Jun 25, 2024
f21cc26
chore: gofumpt files
srinandan Jun 25, 2024
760a237
feat: adds support to export APIs
srinandan Jun 25, 2024
a0ea961
chore: gofumpt files
srinandan Jun 25, 2024
383225c
bug: uncomment crt attribute
srinandan Jun 27, 2024
a6ee39c
bug: check if allowedValues is present
srinandan Jun 27, 2024
ab8a424
bug: address review comments
srinandan Jun 28, 2024
e283b2a
feat: write contents of spec to a file
srinandan Jun 28, 2024
383728d
bug: fixes incorrect descriptions
srinandan Jul 1, 2024
680b92b
bug: fixes params for deployments
srinandan Jul 2, 2024
4fa155c
Fixed UpdateCmd for deployments and externalAPIs
kurtkanaskie Jul 2, 2024
969fa42
feat: adds capability to update api version
srinandan Jul 2, 2024
ffeb6c7
bug: fixes flag naming to be consistent
srinandan Jul 2, 2024
42006bd
bug: fixes struct for api version
srinandan Jul 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/apiclient/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (
)

// registryBaseURL is the Apigee API Hub control plane endpoint
const registryBaseURL = "https://apigeeregistry.googleapis.com/v1/projects/%s/locations/%s"
const registryBaseURL = "https://apihub.googleapis.com/v1/projects/%s/locations/%s"

// baseDRZURL is the Apigee control plane endpoint
const baseDRZURL = "https://%s-apigee.googleapis.com/v1/organizations/"
Expand Down Expand Up @@ -334,7 +334,7 @@ func GetApigeeRegistryURL() (registryURL string) {
if options.ProjectID == "" {
options.ProjectID = options.Org
}
return fmt.Sprintf(registryBaseURL, options.ProjectID, registryRegion)
return fmt.Sprintf(registryBaseURL, options.ProjectID, options.Region)
}

// GetApigeeBaseURL
Expand Down
1 change: 0 additions & 1 deletion internal/bundlegen/proxybundle/proxybundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,6 @@ func SetSharedFlowDescription(sfFolder string, name string, description string)
return err
}
return apiclient.WriteByteArrayToFile(path.Join(sfFolder, name+".xml"), false, byteValue)

}

func downloadProxyFromRepo(client *github.Client, ctx context.Context, owner string, repo string, repopath string, sharedflow bool) (err error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/client/apidocs/apidocs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func TestUpdateDocumentation(t *testing.T) {
if openAPIDoc, err = utils.ReadFile(path.Join(cliPath, "test", "openapi.json")); err != nil {
t.Fatalf("%v", err)
}
if _, err = UpdateDocumentation(siteID, aPIDocID, displayName, string(openAPIDoc), "", ""); err != nil {
if _, err = UpdateDocumentation(siteID, aPIDocID, displayName, openAPIDoc, nil, ""); err != nil {
t.Fatalf("%v", err)
}
}
Expand Down
Loading
Loading