highlightjs / highlightjs/highlightjs.org

Document `/api/download` endpoint

Open
#2 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
35
Forks
15
PR merge metrics
No merged PRs in 30d

Description

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.

```js
{
"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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.