lib/service_contract/avro/endpoint.rb in service_contract-0.1.1 vs lib/service_contract/avro/endpoint.rb in service_contract-0.2.0

- old
+ new

@@ -23,9 +23,14 @@ end protected def request_method + #Check for [<METHOD>] at the front of the doc string. this signals an action override + if doc =~ /^\[([A-Z]+)\].+$/ + return $1 + end + case name when "create" "POST" when "update" "PUT" \ No newline at end of file