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

Create a new Action #84

Open
cfnyu opened this issue Dec 1, 2017 · 0 comments
Open

Create a new Action #84

cfnyu opened this issue Dec 1, 2017 · 0 comments
Assignees

Comments

@cfnyu
Copy link
Collaborator

cfnyu commented Dec 1, 2017

As a Developer
I need create a toggle resource action
So that I can toggle the Recommendation Type status on/off

Assumptions:

  • I have a recommendation Type with a status field
  • There will two action API
  • The URL will be /recommendations/activate/{rec_type_id}
  • The URL will be /recommendations/deactivate/{rec_type_id}
  • This verb will be PUT

Acceptance Criteria:

Given I have an Activate resource 
When visit `/recommendations/activate/{rec_type_id}`
Then I should have the ability to make recommendations against that type

Given I have an Deactivate resource 
When visit `/recommendations/deactivate/{rec_type_id}`
Then I should not have the ability to make recommendations against that type
@cfnyu cfnyu added this to the Sprint 4 - Complete homework 2 milestone Dec 1, 2017
@Harivadhana Harivadhana self-assigned this Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants