lib/hachi/clients/case.rb in hachi-0.3.2 vs lib/hachi/clients/case.rb in hachi-1.0.0

- old
+ new

@@ -58,23 +58,23 @@ flag: flag, tlp: tlp, tags: tags, ) - post("/api/case", kase.payload) { |json| json } + post("/api/case", json: kase.payload) { |json| json } end # # Find cases # - # @param [Hash] attributes + # @param [Hash] query # @param [String] range # # @return [Hash] # - def search(range: "all", **attributes) - _search("/api/case/_search", attributes: attributes, range: range) { |json| json } + def search(query, range: "all") + _search("/api/case/_search", query: query, range: range) { |json| json } end # # Get list of cases linked to this case # @@ -136,10 +136,10 @@ summary: summary, endDate: end_date, metrics: metrics, customFields: custom_fields }.compact - patch("/api/case/#{id}", attributes) { |json| json } + patch("/api/case/#{id}", json: attributes) { |json| json } end end end end