lib/ruby_lokalise_api/rest/tasks.rb in ruby-lokalise-api-6.0.0 vs lib/ruby_lokalise_api/rest/tasks.rb in ruby-lokalise-api-6.1.0
- old
+ new
@@ -3,51 +3,51 @@
module RubyLokaliseApi
module Rest
module Tasks
# Returns all tasks for the given project
#
- # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-tasks-get
+ # @see https://developers.lokalise.com/reference/list-all-tasks
# @return [RubyLokaliseApi::Collection::Task<RubyLokaliseApi::Resources::Task>]
# @param project_id [String]
# @param params [Hash]
def tasks(project_id, params = {})
c_r RubyLokaliseApi::Collections::Task, :all, project_id, params
end
# Returns a single task for the given project
#
- # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-task-get
+ # @see https://developers.lokalise.com/reference/retrieve-a-task
# @return [RubyLokaliseApi::Resources::Task]
# @param project_id [String]
# @param task_id [String, Integer]
def task(project_id, task_id)
c_r RubyLokaliseApi::Resources::Task, :find, [project_id, task_id]
end
# Creates task for the given project
#
- # @see https://app.lokalise.com/api2docs/curl/#transition-create-a-task-post
+ # @see https://developers.lokalise.com/reference/create-a-task
# @return [RubyLokaliseApi::Resources::Task]
# @param project_id [String]
# @param params [Hash]
def create_task(project_id, params)
c_r RubyLokaliseApi::Resources::Task, :create, project_id, params
end
# Updates task for the given project
#
- # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-task-put
+ # @see https://developers.lokalise.com/reference/update-a-task
# @return [RubyLokaliseApi::Resources::Task]
# @param project_id [String]
# @param task_id [String, Integer]
# @param params [Hash]
def update_task(project_id, task_id, params = {})
c_r RubyLokaliseApi::Resources::Task, :update, [project_id, task_id], params
end
# Deletes task for the given project
#
- # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-task-delete
+ # @see https://developers.lokalise.com/reference/delete-a-task
# @return [Hash]
# @param project_id [String]
# @param task_id [String, Integer]
def destroy_task(project_id, task_id)
c_r RubyLokaliseApi::Resources::Task, :destroy, [project_id, task_id]