Method: PactBroker::Api::Resources::Tag#from_json
- Defined in:
- lib/pact_broker/api/resources/tag.rb
#from_json ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/pact_broker/api/resources/tag.rb', line 20 def from_json unless tag @tag = tag_service.create identifier_from_path # Make it return a 201 by setting the Location header response.headers["Location"] = tag_url(base_url, tag) end response.body = to_json end |