lib/ruby_lokalise_api/rest/projects.rb in ruby-lokalise-api-6.0.0 vs lib/ruby_lokalise_api/rest/projects.rb in ruby-lokalise-api-6.1.0

- old
+ new

@@ -3,56 +3,56 @@ module RubyLokaliseApi module Rest module Projects # Returns all projects available to the user authorized with the API token # - # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-projects-get + # @see https://developers.lokalise.com/reference/list-all-projects # @return [RubyLokaliseApi::Collection::Project<RubyLokaliseApi::Resources::Project>] # @param params [Hash] def projects(params = {}) c_r RubyLokaliseApi::Collections::Project, :all, nil, params end # Returns a single project # - # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-project-get + # @see https://developers.lokalise.com/reference/retrieve-a-project # @return [RubyLokaliseApi::Resources::Project] # @param project_id [String, Integer] def project(project_id) c_r RubyLokaliseApi::Resources::Project, :find, project_id end # Creates project # - # @see https://app.lokalise.com/api2docs/curl/#transition-create-a-project-post + # @see https://developers.lokalise.com/reference/create-a-project # @return [RubyLokaliseApi::Resources::Project] # @param params [Hash] def create_project(params) c_r RubyLokaliseApi::Resources::Project, :create, nil, params end # Updates project # - # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-project-put + # @see https://developers.lokalise.com/reference/update-a-project # @return [RubyLokaliseApi::Resources::Project] # @param project_id [String, Integer] # @param params [Hash] def update_project(project_id, params) c_r RubyLokaliseApi::Resources::Project, :update, project_id, params end # Deletes all keys and translations from the project # - # @see https://app.lokalise.com/api2docs/curl/#transition-empty-a-project-put + # @see https://developers.lokalise.com/reference/empty-a-project # @return [Hash] # @param project_id [String, Integer] def empty_project(project_id) c_r RubyLokaliseApi::Resources::Project, :empty, [project_id, 'empty'] end # Deletes the project # - # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-project-delete + # @see https://developers.lokalise.com/reference/delete-a-project # @return [Hash] # @param project_id [String, Integer] def destroy_project(project_id) c_r RubyLokaliseApi::Resources::Project, :destroy, project_id end