lib/dox/entities/example.rb in dox-0.0.2 vs lib/dox/entities/example.rb in dox-0.0.3
- old
+ new
@@ -34,18 +34,14 @@
response.body
end
private
- def path
- request.path.sub(/\.json[^\?]*/, '')
- end
-
def fullpath
if request.query_parameters.present?
- URI::HTTP.build(path: path, query: request.query_parameters.to_query)
+ "#{request.path}?#{request.query_parameters.to_query}"
else
- path
+ request.path
end
end
end
end
end