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

Server: Improve mock server for CLI/frontend development #6

Closed
2 of 7 tasks
camerondurham opened this issue Jan 21, 2022 · 2 comments
Closed
2 of 7 tasks

Server: Improve mock server for CLI/frontend development #6

camerondurham opened this issue Jan 21, 2022 · 2 comments
Labels
nice to have Not a priority server Backend server and API endpoints

Comments

@camerondurham
Copy link
Owner

camerondurham commented Jan 21, 2022

Create mock server for API endpoints described in design doc: Runner Project Details

This functionality currently exists. However it would be nice to have a separate mock server
for specifically testing frontend/CLI and so changes can be made on server without interfering with other development.

Acceptance Criteria:

  • Mock GET /api/v1/languages (added in Add project skeleton and basic structure #11, can copy into mock server)
  • Mock POST /api/v1/run (added in Add project skeleton and basic structure #11, can copy into mock server)
  • Mock POST /api/v1/run with random response (stretch)
    • Return mock "syntax error" like response
    • Return mock "runtime error" like response
    • Return mock successful response (prints out some message to stdout/stderr, no errors)
  • update Makefile commands to support make run-mock-api and run the corresponding mock server
@camerondurham
Copy link
Owner Author

camerondurham commented Jan 25, 2022

This is currently added in #11

Some improvements could help front-end development, edited AC.

@camerondurham camerondurham removed their assignment Jan 26, 2022
@camerondurham camerondurham changed the title Mock server for frontend development Improve mock server for frontend development Jan 27, 2022
@camerondurham camerondurham changed the title Improve mock server for frontend development Improve mock server for CLI/frontend development Jan 27, 2022
@camerondurham camerondurham changed the title Improve mock server for CLI/frontend development Server: Improve mock server for CLI/frontend development Jan 27, 2022
@camerondurham camerondurham added server Backend server and API endpoints nice to have Not a priority labels Feb 5, 2022
@camerondurham
Copy link
Owner Author

Closing since this is no longer a priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice to have Not a priority server Backend server and API endpoints
Projects
Development

No branches or pull requests

2 participants