mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
Add handling of type filters and handling of ETags
Add API documentation and test cases around ETags for the API.
This commit is contained in:
parent
960e4084e3
commit
6e5a97ad4d
5 changed files with 182 additions and 19 deletions
|
@ -2,10 +2,14 @@ module Repp
|
|||
module V1
|
||||
class RetainedDomainsController < ActionController::API
|
||||
def index
|
||||
domains = RetainedDomains.new
|
||||
domains = RetainedDomains.new(query_params)
|
||||
|
||||
render json: { count: domains.count, domains: domains.to_jsonable }
|
||||
end
|
||||
|
||||
def query_params
|
||||
params.permit(:type)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue