SciEdu API documentation.
Please install Node.js and pnpm first.
pnpm installation:
npm install --global corepack@latest
corepack enable pnpmpnpm iYou need to compile after editing to preview, compiling automatically runs format, compile and yaak for you.
pnpm buildBuild and serve the generated API documentation locally:
pnpm preview:buildThen open http://localhost:3000. The preview server is powered by
http-server, listens only on the
local machine, and disables browser caching so rebuilt OpenAPI output is shown
after a refresh.
If the output has already been built, start the preview server without building again:
pnpm previewTo run a mock API from the generated OpenAPI document instead, use
pnpm start; Prism listens on http://localhost:4010.
Other Commands
pnpm formatpnpm compilepnpm yaakYou need to compile OpenAPI before compiling Yaak
pnpm cleanThe OpenAPI output is written to tsp-output/schema/openapi.1.0.0.yaml. You can preview it using:
- Scalar - Run
pnpm previewand open http://localhost:3000. - Swagger UI - Run
pnpm previewand open http://localhost:3000/swagger.html. - Prism - For API documentation preview and testing. Run
pnpm startand open http://localhost:4010. - Yaak - Import the
yaakfolder.