Interactive Swagger UI & OpenAPI Specification
RUSEON Core automatically generates and serves interactive OpenAPI 3.0 documentation directly from its embedded HTTP server.
1. Accessing Swagger UI
Navigate to the Swagger UI endpoint in your web browser:
text
http://localhost:8080/swagger/index.htmlDirect Specification URLs:
- JSON Format:
http://localhost:8080/swagger/doc.json - YAML Format:
http://localhost:8080/swagger/doc.yaml
2. Authorizing Requests in Swagger UI
- Click the green Authorize button at the top right of the Swagger UI.
- Enter your JWT token in the value box with the
Bearerprefix:textBearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... - Click Authorize $\to$ Close.
- All subsequent
Try it outrequests will automatically include theAuthorizationheader.
3. Generating Client SDKs
Generate strongly-typed client libraries in any language using OpenAPI Generator:
bash
# Generate TypeScript / Axios client
npx @openapitools/openapi-generator-cli generate \
-i http://localhost:8080/swagger/doc.json \
-g typescript-axios \
-o ./src/api/ruseon-client
# Generate Python client
openapi-generator-cli generate \
-i http://localhost:8080/swagger/doc.json \
-g python \
-o ./ruseon_python_sdk