Add simulator request widgets and Swagger UI updates - #5
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f7f59e1b26
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| 'use strict'; | ||
|
|
||
| const WIDGET_SELECTOR = '.sim-live-request'; | ||
| const DEFAULT_METHODS = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD', 'TRACE']; |
There was a problem hiding this comment.
Do not offer TRACE in the browser request selector
When a learner selects TRACE in the editable widget, the request reaches fetch() with that method, but Fetch rejects TRACE before any network request is sent, so the widget reports “Request failed” instead of the simulator's documented 501 response (the simulator tests explicitly support trace for /sim/entities). Remove TRACE from this browser-execution selector or direct learners to the generated cURL/wget command for it.
Useful? React with 👍 / 👎.
Adds inline HTTP request widgets to the API Simulator instructions, updates Swagger UI headings and related OpenAPI/Swagger content, fixes migrated repository links, and updates the change log.\n\nVerification:\n- Thingifier support merged in eviltester/thingifier#70\n- API Challenges Java CI run is green on Java 17 and Java 21: https://github.com/eviltester/apichallenges/actions/runs/29574363706