Method: Service::RegistryApi#search
- Defined in:
- app/models/service/registry_api.rb
#search(query) ⇒ Object
Since the Registry API v2 does not support a search the v1 endpoint is used Newer registries will fail, the v2 catalog endpoint is used
33 34 35 36 37 38 |
# File 'app/models/service/registry_api.rb', line 33 def search(query) get('/v1/search'.freeze, { q: query }) rescue => e logger.warn "API v1 - Search failed #{e.backtrace}" { 'results' => catalog(query) } end |