Sha256: 4143d07f37bb2bb48046b0aa1d19ccd677fda032b6d44bc3339b97ca5ac89c19

Contents?: true

Size: 506 Bytes

Versions: 12

Compression:

Stored size: 506 Bytes

Contents

require 'learn_web/client/validate_repo/slug'

module LearnWeb
  class Client
    module ValidateRepo
      def validate_repo_slug_endpoint
        "#{API_ROOT}/repo_slug_validations"
      end

      def validate_repo_slug(repo_slug:)
        response = post(
          validate_repo_slug_endpoint,
          headers: { 'Authorization' => "Bearer #{token}" },
          params: { 'repo_slug' => repo_slug }
        )

        LearnWeb::Client::ValidateRepo::Slug.new(response)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
learn-web-1.5.5 lib/learn_web/client/validate_repo.rb
learn-web-1.5.4 lib/learn_web/client/validate_repo.rb
learn-web-1.5.3 lib/learn_web/client/validate_repo.rb
learn-web-1.5.2 lib/learn_web/client/validate_repo.rb
learn-web-1.5.1 lib/learn_web/client/validate_repo.rb
learn-web-1.5.0 lib/learn_web/client/validate_repo.rb
learn-web-1.4.2 lib/learn_web/client/validate_repo.rb
learn-web-1.4.1 lib/learn_web/client/validate_repo.rb
learn-web-1.4.0 lib/learn_web/client/validate_repo.rb
learn-web-1.3.0 lib/learn_web/client/validate_repo.rb
learn-web-1.2.0 lib/learn_web/client/validate_repo.rb
learn-web-1.1.0 lib/learn_web/client/validate_repo.rb