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 update #32

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change create_planvariants path
soenkex committed Jan 22, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit a8993ba0bf5937110ce18e12a1631e3a6eb84580
4 changes: 2 additions & 2 deletions lib/pactas_itero/api/plans.rb
Original file line number Diff line number Diff line change
@@ -31,9 +31,9 @@ def plan_variant(planvariant_id, options = {})
get "api/v1/planvariants/#{planvariant_id}", options
end

def create_plan_variant(options = {})
def create_plan_variant(plan_id, options = {})
options = options.camelize_keys
post "api/v1/planvariants", options
post "api/v1/plans/#{plan_id}/planvariants", options
end

def update_plan_variant(planvariant_id, options = {})