Current section
Files
Jump to
Current section
Files
lib/pivo/tracker_api/comments_endpoint.ex
defmodule Pivo.TrackerAPI.CommentsEndpoint do
@moduledoc """
Comments endpoint module.
Index of comments on an individual story.
## Parameters
- `project_id`
Required — The ID of the project.
- `story_id`
Required — The ID of the story.
"""
alias Pivo.Resources.Comment
use Pivo.Endpoint,
path: "/projects/{project_id}/stories/{story_id}/comments",
path_params: [project_id: :integer, story_id: :integer],
http_methods: [
get: {:get_selected, [resource: Comment]},
post: {:create, [resource: Comment]}
]
end