Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add simulationRoutes to store, display at base / route #280

Merged
merged 8 commits into from
Sep 6, 2024

Conversation

jbolda
Copy link
Contributor

@jbolda jbolda commented Jul 22, 2024

Motivation

To improve transparency and flexibility, we include a page at the root that lists all of the routes, and the ability to signal which response to return.

Approach

Pipe OpenAPI routes into the simulation store. Return these items through a small form to adjust that state. Also, pipe that state into the OpenAPI handlers to improve the usability.

Example

Screenshot 2024-08-27 at 4 49 33 PM

@jbolda jbolda added the preview label Jul 22, 2024
@frontsidejack
Copy link
Member

frontsidejack commented Jul 22, 2024

Package Changes Through 2f42d89

There are 1 changes which include @simulacrum/foundation-simulator with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@simulacrum/foundation-simulator 0.1.0 0.2.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@jbolda jbolda force-pushed the foundation-simulator-route-list branch from 0c8ef65 to 974671e Compare July 22, 2024 19:44
@frontsidejack
Copy link
Member

frontsidejack commented Jul 22, 2024

The following preview packages have been published by Covector:

  • @simulacrum/foundation-simulator@0.1.0-foundation-simulator-route-list.ab1c616

ab1c616

@jbolda jbolda force-pushed the foundation-simulator-route-list branch from a78a0ea to dcbcfa5 Compare August 12, 2024 21:38
@jbolda jbolda marked this pull request as ready for review August 15, 2024 20:32
@jbolda
Copy link
Contributor Author

jbolda commented Aug 16, 2024

We still want to handle the routes configured through extendRouter. After this, we can review and merge.

@jbolda jbolda removed the preview label Aug 27, 2024
@jbolda jbolda requested a review from cowboyd August 27, 2024 21:38
@cowboyd cowboyd merged commit 56ac29c into main Sep 6, 2024
4 checks passed
@cowboyd cowboyd deleted the foundation-simulator-route-list branch September 6, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants