Sha256: f66a176dd537d61d81b8b332b97af86d0be4fb637eae265ceaca1f9d6837c973

Contents?: true

Size: 1.32 KB

Versions: 3

Compression:

Stored size: 1.32 KB

Contents

---
http_interactions:
- request:
    method: delete
    uri: https://my.datacentred.io/api/users/my_user_id
    body:
      encoding: US-ASCII
      string: ''
    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: 422
      message: Unprocessable Entity
    headers:
      Server:
      - nginx/1.10.3
      Date:
      - Thu, 31 Aug 2017 10:16:29 GMT
      Content-Type:
      - application/json; charset=utf-8
      Transfer-Encoding:
      - chunked
      Connection:
      - keep-alive
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Api-Version:
      - '1'
      Cache-Control:
      - no-cache
      X-Request-Id:
      - 53e28fff-038a-4377-a4aa-1208f048b2e1
      X-Runtime:
      - '0.127991'
    body:
      encoding: UTF-8
      string: '{"errors":[{"detail":"You can''t delete yourself.","resource":"user"}],"links":[{"href":"https://my.datacentred.io/api","rel":"help"}]}'
    http_version:
  recorded_at: Thu, 31 Aug 2017 10:16:29 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/user_delete_failed_validation.yml
datacentred-0.1.1pre test/vcr_cassettes/user_delete_failed_validation.yml
datacentred-0.1.0pre test/vcr_cassettes/user_delete_failed_validation.yml