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

Document /api/download endpoint #2

Open
allejo opened this issue Sep 9, 2022 · 2 comments
Open

Document /api/download endpoint #2

allejo opened this issue Sep 9, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@allejo
Copy link
Member

allejo commented Sep 9, 2022

The new Download page is powered by the /api/download endpoint that should be documented for others to use. This endpoint accepts POST requests with a JSON body in the following format.

{
  "api": 2,
  "languages": []
}

A proposed addition is to add a format key that would allow for zip or javascript to download the compiled bundle in the respective format

@allejo allejo added the enhancement New feature or request label Sep 9, 2022
@joshgoebel
Copy link
Member

I assume this is only building the "just include it via <script>" common JS monolith (like the old website)... if someone wanted ES modules we'd just point them to the existing CDNs or Git repos?

@allejo
Copy link
Member Author

allejo commented Sep 9, 2022

I assume this is only building the "just include it via <script>" common JS monolith (like the old website)... if someone wanted ES modules we'd just point them to the existing CDNs or Git repos?

That is correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants