Sha256: d961def7578c2a5e128cd1e00fb5f5a1916de85f6020ff52311f9e4bc1655ff3

Contents?: true

Size: 1.59 KB

Versions: 3

Compression:

Stored size: 1.59 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://my.datacentred.io/api/users
    body:
      encoding: UTF-8
      string: '{"user":{"email":"death@afterlife.com","password":"melvin11","first_name":"Foo","last_name":"Bar"}}'
    headers:
      Accept:
      - application/vnd.datacentred.api+json; version=1
      Authorization:
      - Token token=access_key:secret_key
      Content-Type:
      - application/json
      User-Agent:
      - Faraday v0.9.2
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 201
      message: Created
    headers:
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Api-Version:
      - '1'
      Content-Type:
      - application/vnd.datacentred.api+json; charset=utf-8
      Etag:
      - W/"e9c6b91f64295188613937075fc50980"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - b4b62753-383b-4d93-9cc7-3741c58ae7f9
      X-Runtime:
      - '3.579128'
      Transfer-Encoding:
      - chunked
    body:
      encoding: UTF-8
      string: '{"user":{"id":"7d44860f4ace4fb8b63b622f6d5cdc43","email":"death@afterlife.com","first_name":"Foo","last_name":"Bar","created_at":"2017-09-05T18:39:07Z","updated_at":"2017-09-05T18:39:07Z","links":[{"href":"https://my.datacentred.io/api/users/7d44860f4ace4fb8b63b622f6d5cdc43","rel":"self"},{"href":"https://my.datacentred.io/api/schemas/user","rel":"schema"}]}}'
    http_version: 
  recorded_at: Tue, 05 Sep 2017 18:39:09 GMT
recorded_with: VCR 2.8.0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datacentred-1.1.1 test/vcr_cassettes/create_user.yml
datacentred-0.1.1pre test/vcr_cassettes/create_user.yml
datacentred-0.1.0pre test/vcr_cassettes/create_user.yml