SwaggerClient - the Ruby gem for the TeePublic V3 search Api Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.45
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.RubyClientCodegen
To build the Ruby code into a gem:
gem build swagger_client.gemspec
Then either install the gem locally:
gem install ./swagger_client-1.0.0.gem
(for development, run gem install --dev ./swagger_client-1.0.0.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'swagger_client', '~> 1.0.0'
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'swagger_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'swagger_client'
# Setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: api_key
config.api_key['X-API-KEY'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-KEY'] = 'Bearer'
end
api_instance = SwaggerClient::AutocompleteApi.new
prefix = 'prefix_example' # String | search prefix
opts = {
limit: 6, # Integer | Number of results to return.
explain: false, # BOOLEAN | Whether to return explanation of results.
bucket: 'default' # String | AB test bucket
}
begin
#Returns a list of suggestions based on search prefix.
result = api_instance.get_v1_autocomplete(prefix, opts)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AutocompleteApi->get_v1_autocomplete: #{e}"
end
All URIs are relative to https://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
SwaggerClient::AutocompleteApi | get_v1_autocomplete | GET /v1/autocomplete | Returns a list of suggestions based on search prefix. |
SwaggerClient::AutocompleteApi | post_v1_autocomplete | POST /v1/autocomplete | Returns a list of suggestions based on search prefix. |
SwaggerClient::DesignsApi | post_v1_similar_designs | POST /v1/similar-designs | Returns a list of discoverable designs based on the query of a design's primary tag. |
SwaggerClient::RelatedApi | get_v1_related_search | GET /v1/related-search | Gets related searches based on given term |
SwaggerClient::SearchApi | post_artist_search | POST /v1/artist-search | Performs search on active designs by artist |
SwaggerClient::SearchApi | post_v2_dmca_search | POST /v2/dmca-search | Performs search on publishable designs. |
SwaggerClient::SearchApi | post_v2_search | POST /v2/search | Returns a list of discoverable designs based on search query. |
SwaggerClient::ServiceApi | healthcheck_get | GET /healthcheck | Check if the service is running |
SwaggerClient::TagApi | get_v1_design_tags | GET /v1/design-tags | Gets tags for a design |
SwaggerClient::TagApi | get_v1_link_graph | GET /v1/link-graph | Retrieves the status of tags considered for our link graph. |
SwaggerClient::TagApi | get_v1_related_tags | GET /v1/related-tags | Gets related tags based on given term(s) |
SwaggerClient::TagApi | get_v1_tag_suggestions | GET /v1/tag-suggestions | Returns a list of tag suggestions based on search prefix. |
SwaggerClient::TagApi | get_v1_tags | GET /v1/tags | Gets tags data based on name(s) |
SwaggerClient::TagApi | post_v1_design_tags | POST /v1/design-tags | Sets taggings for designs |
SwaggerClient::TagApi | post_v1_link_graph | POST /v1/link-graph | Sets the status of tags considered for our link graph. |
SwaggerClient::TagApi | post_v1_tags | POST /v1/tags | Sets tags properties |
SwaggerClient::TrendingApi | get_v1_trending_search | GET /v1/trending-search | Gets trending search results. |
SwaggerClient::TrendingApi | post_v1_trending_search | POST /v1/trending-search | Saves trending search results. |
- SwaggerClient::ArtistSearchRequest
- SwaggerClient::AutocompleteRequest
- SwaggerClient::AutocompleteResponse
- SwaggerClient::AutocompleteSuggestion
- SwaggerClient::Design
- SwaggerClient::DesignSlim
- SwaggerClient::DesignTagsResponse
- SwaggerClient::DmcaSearchRequestV2
- SwaggerClient::EsAutocompleteSuggest
- SwaggerClient::EsCompletionSuggest
- SwaggerClient::EsCompletionSuggestOption
- SwaggerClient::EsHit
- SwaggerClient::EsHits
- SwaggerClient::EsSearchResponse
- SwaggerClient::Explain
- SwaggerClient::LinkGraphResponse
- SwaggerClient::RelatedResponse
- SwaggerClient::RelatedResult
- SwaggerClient::RelatedTagObject
- SwaggerClient::RelatedTagResponse
- SwaggerClient::RelatedTagResult
- SwaggerClient::SearchRequest
- SwaggerClient::SearchRequestV2
- SwaggerClient::SearchResponse
- SwaggerClient::SetDesignTaggingsObject
- SwaggerClient::SetDesignsTaggingsRequest
- SwaggerClient::SetDesignsTagsResponse
- SwaggerClient::SetLinkGraphRequest
- SwaggerClient::SetLinkGraphResponse
- SwaggerClient::SetTagObject
- SwaggerClient::SetTagsRequest
- SwaggerClient::SetTagsResponse
- SwaggerClient::SimilarDesignsRequestV1
- SwaggerClient::SimilarDesignsResponse
- SwaggerClient::TagResult
- SwaggerClient::TagsResponse
- SwaggerClient::TrendingRequest
- SwaggerClient::TrendingResult
- Type: API key
- API key parameter name: X-API-KEY
- Location: HTTP header