Method: NexusAPI::NexusConnection#post

Defined in:
lib/nexus_api/nexus_connection.rb

#post(endpoint:, parameters: '', headers: {'Content-Type' => 'application/json'}, api_version: 'v1') ⇒ Object



28
29
30
31
32
33
34
35
36
37
# File 'lib/nexus_api/nexus_connection.rb', line 28

def post(endpoint:, parameters: '', headers: {'Content-Type' => 'application/json'}, api_version: 'v1')
  response = send_request(
    :post, 
    endpoint,
    parameters: parameters,
    headers: headers,
    api_version: api_version
  )
  valid?(response)
end