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

[API] provide mock api response for /environments #393

Open
4 tasks
jeff-knurek opened this issue Jun 20, 2021 · 0 comments
Open
4 tasks

[API] provide mock api response for /environments #393

jeff-knurek opened this issue Jun 20, 2021 · 0 comments
Labels
Module: API Issues related to the API. Project: PLD Issue related to Project Lockdown. ⌨ Team: Devs Task related to Team Developers. 📑 Team: Docs Task related to Team Documentation.

Comments

@jeff-knurek
Copy link
Contributor

logo

Problem

the frontend has already created a mock api response for the /environments endpoint: https://github.com/TheIOFoundation/ProjectLockdown/blob/master/MAP/public/data/environment.response.json

This data is for DSL_ID 1.

Proposed solution

  • Create a controller for the API to respond to requests to /environments/{dsl id}
  • if the api request is /environments/1 then the hardcoded mock data should be returned
  • if the api request is /environments/2 then no data should be returned
  • if the api request is not GET, or for other parameters, the response should be an error state
@jeff-knurek jeff-knurek added Module: API Issues related to the API. Project: PLD Issue related to Project Lockdown. ⌨ Team: Devs Task related to Team Developers. 📑 Team: Docs Task related to Team Documentation. labels Jun 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: API Issues related to the API. Project: PLD Issue related to Project Lockdown. ⌨ Team: Devs Task related to Team Developers. 📑 Team: Docs Task related to Team Documentation.
Development

No branches or pull requests

1 participant