Skip to content

Create a download-starter-project endpoint in the registry. #720

Closed
devfile/registry-support
#109
@schultzp2020

Description

@schultzp2020

Which area this feature is related to?
/area registry

Which functionality do you think we should add?

Create a download-starter-project endpoint in the registry.

Why is this needed? Is your feature request related to a problem?
Currently, we have this functionality in the registry-viewer; however, Next.js is limiting the body download size in future versions.

In addition, by creating this endpoint we can deploy the registry-viewer statically. The previous holdup was because any file in the /pages/api directory would create an api which requires a node server. If we could rip the download-starter-project functionality out of the api directory, the only other api in the directory, which is nonessential, is to make the registry-viewer dynamic. Therefore, by making this change it allows the registry-viewer to be static.

Describe the solution you'd like

An endpoint that takes a devfileName and a starterProjectName and downloads the starterProject when queried.

Describe alternatives you've considered

Keep this functionality inside of the registry-viewer; however, this has issues as stated above.

Metadata

Metadata

Labels

area/registryDevfile registry for stacks and infrastructure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions