feat: Add Endpoints Required to Support a Web Administrator (#335)#336
Open
gibson9583 wants to merge 1 commit into
Open
feat: Add Endpoints Required to Support a Web Administrator (#335)#336gibson9583 wants to merge 1 commit into
gibson9583 wants to merge 1 commit into
Conversation
Add engine REST support so the standalone web administrator can run fully
against the engine — serving plugin UIs, exact serialization, and script
tooling — with no local JVM sidecar or shared filesystem.
Endpoints (all session-authed, no extra permission, auditable=false):
- GET /api/webplugins — enabled extensions that ship a webadmin/ UI
- GET /api/webplugins/{extensionPath}/{file} — serve an extension's webadmin/ assets
- POST /api/javascript/_validate — validate JS (Rhino compiler)
- POST /api/javascript/_prettyPrint — format JS (Rhino-AST formatter)
- POST /api/datatypes/_serialize — serialize a message via a data type (message trees)
Supporting changes:
- RequestedWithFilter: exempt read-only GET /api/webplugins/* from the
X-Requested-With CSRF requirement (browser module/script loads can't set headers).
- DataTypeServerPlugin: add getVocabulary(version, type); override in HL7v2, EDI,
NCPDP, and DICOM so /api/datatypes/_serialize returns element descriptions.
New servlets auto-register via the existing package scan; no wiring changes.
Signed-off-by: gibson9583 <cgibson@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add engine REST support so a standalone web administrator can run fully against the engine by serving plugin UIs, exact serialization, and script tooling with no local JVM sidecar or shared filesystem.
Endpoints (all session-authed, no extra permission, auditable=false):
Supporting changes:
New servlets auto-register via the existing package scan. No wiring changes.