Sha256: cf54af4d3216bb74f5261725f95f5ad3bd571b035853aed1f58d186107c0b731

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

# Example of using RestClient to create/retrieve houses
# Can open with 'restclient' on cmd line
require 'rest_client'
require 'json'

id = RestClient.post('http://localhost:14000/houses', JSON.generate(name: 'test_house')).body
puts id

RestClient.get('localhost:14000/houses').body

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
house_test-0.1.1 rest_client_scripts.rb