Class: All3DP::API
- Inherits:
-
Object
- Object
- All3DP::API
- Defined in:
- lib/all3dp/api.rb
Overview
Handle all calls to the API.
Defined Under Namespace
Classes: BadGatewayError, Error, GatewayTimeoutError, ServiceUnavailableError
Instance Method Summary collapse
Instance Method Details
#create_configuration(items:) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/all3dp/api.rb', line 11 def create_configuration(items:) json = { items: items } response = json_post("#{BASE_URL}/configuration", json) JSON.parse(response_body(response)) end |