SILO API Unit test - Server: https://silo-dev.pod.blue

Users

GET /users
200
415 Unsupported Media Type
{
  "data": [
  ]
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
201
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "test@test.com",
    "attributes": {
      "name": "Test User"
    }
  }
}
{
  "data": {
    "type": "users",
    "id": "test@test.com",
    "links": {
      "self": "https://silo-dev.pod.blue/users/test@test.com"
    },
    "attributes": {
      "name": "Test User"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
201
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "other@mail.com",
    "attributes": {
      "name": "Tester de User"
    }
  }
}
{
  "data": {
    "type": "users",
    "id": "other@mail.com",
    "links": {
      "self": "https://silo-dev.pod.blue/users/other@mail.com"
    },
    "attributes": {
      "name": "Tester de User"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /users/test@test.com
200
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "test@test.com",
    "links": {
      "self": "https://silo-dev.pod.blue/users/test@test.com"
    },
    "attributes": {
      "name": "Test User"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /users/me
200
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "test@test.com",
    "links": {
      "self": "https://silo-dev.pod.blue/users/test@test.com"
    },
    "attributes": {
      "name": "Test User"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /users/me
200
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "other@mail.com",
    "links": {
      "self": "https://silo-dev.pod.blue/users/other@mail.com"
    },
    "attributes": {
      "name": "Tester de User"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
200
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "test@test.com",
    "attributes": {
      "location": "Utrecht"
    }
  }
}
{
  "data": {
    "type": "users",
    "id": "test@test.com",
    "links": {
      "self": "https://silo-dev.pod.blue/users/test@test.com"
    },
    "attributes": {
      "name": "Test User",
      "location": "Utrecht"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/me
200
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "me",
    "attributes": {
      "location": null
    }
  }
}
{
  "data": {
    "type": "users",
    "id": "test@test.com",
    "links": {
      "self": "https://silo-dev.pod.blue/users/test@test.com"
    },
    "attributes": {
      "name": "Test User"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Items

GET /items
200
415 Unsupported Media Type
{
  "data": [
  ]
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
201
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item--",
    "attributes": {
      "title": "Test Item",
      "description": "My first test item!"
    }
  }
}
{
  "data": {
    "type": "items",
    "id": "--test-item--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item--"
    },
    "attributes": {
      "title": "Test Item",
      "description": "My first test item!"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /items
200
415 Unsupported Media Type
{
  "data": [
    {
      "type": "items",
      "id": "--test-item--",
      "links": {
        "self": "https://silo-dev.pod.blue/items/--test-item--"
      },
      "attributes": {
        "title": "Test Item",
        "description": "My first test item!"
      },
      "relationships": {
        "owner": {
          "data": {
            "type": "users",
            "id": "test@test.com",
            "links": {
              "self": "https://silo-dev.pod.blue/users/test@test.com"
            }
          }
        }
      }
    }
  ]
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /items/mine
200
415 Unsupported Media Type
{
  "data": [
    {
      "type": "items",
      "id": "--test-item--",
      "links": {
        "self": "https://silo-dev.pod.blue/items/--test-item--"
      },
      "attributes": {
        "title": "Test Item",
        "description": "My first test item!"
      },
      "relationships": {
        "owner": {
          "data": {
            "type": "users",
            "id": "test@test.com",
            "links": {
              "self": "https://silo-dev.pod.blue/users/test@test.com"
            }
          }
        }
      }
    }
  ]
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /items/--test-item--
200
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item--"
    },
    "attributes": {
      "title": "Test Item",
      "description": "My first test item!"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item--
200
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item--",
    "attributes": {
      "category": "The Best Test in Town"
    }
  }
}
{
  "data": {
    "type": "items",
    "id": "--test-item--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item--"
    },
    "attributes": {
      "title": "Test Item",
      "description": "My first test item!",
      "category": "The Best Test in Town"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /users/test@test.com
200
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /users/me
200
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /items/--test-item--
204
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Containing items and juggling

POST /items
201
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-parent--",
    "attributes": {
      "title": "Parent Item"
    }
  }
}
{
  "data": {
    "type": "items",
    "id": "--test-item-parent--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item-parent--"
    },
    "attributes": {
      "title": "Parent Item"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
201
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-child--",
    "attributes": {
      "title": "Child Item"
    },
    "relationships": {
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-parent--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-parent--"
          }
        }
      }
    }
  }
}
{
  "data": {
    "type": "items",
    "id": "--test-item-child--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item-child--"
    },
    "attributes": {
      "title": "Child Item"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      },
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-parent--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-parent--"
          }
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /items/--test-item-parent--
200
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
201
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-grandchild--",
    "attributes": {
      "title": "Grandchild Item"
    },
    "relationships": {
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-child--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-child--"
          }
        }
      }
    }
  }
}
{
  "data": {
    "type": "items",
    "id": "--test-item-grandchild--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item-grandchild--"
    },
    "attributes": {
      "title": "Grandchild Item"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      },
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-child--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-child--"
          }
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
GET /items/mine
200
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-grandchild--
200
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-grandchild--",
    "relationships": {
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-parent--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-parent--"
          }
        }
      }
    }
  }
}
{
  "data": {
    "type": "items",
    "id": "--test-item-grandchild--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item-grandchild--"
    },
    "attributes": {
      "title": "Grandchild Item"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      },
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-parent--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-parent--"
          }
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-grandchild--
200
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-grandchild--",
    "relationships": {
      "parent": {
        "data": {
          "type": "items",
          "id": ""
        }
      }
    }
  }
}
{
  "data": {
    "type": "items",
    "id": "--test-item-grandchild--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item-grandchild--"
    },
    "attributes": {
      "title": "Grandchild Item"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-child--
200
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-child--",
    "relationships": {
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-grandchild--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-grandchild--"
          }
        }
      }
    }
  }
}
{
  "data": {
    "type": "items",
    "id": "--test-item-child--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item-child--"
    },
    "attributes": {
      "title": "Child Item"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      },
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-grandchild--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-grandchild--"
          }
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-grandchild--
200
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-grandchild--",
    "relationships": {
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-parent--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-parent--"
          }
        }
      }
    }
  }
}
{
  "data": {
    "type": "items",
    "id": "--test-item-grandchild--",
    "links": {
      "self": "https://silo-dev.pod.blue/items/--test-item-grandchild--"
    },
    "attributes": {
      "title": "Grandchild Item"
    },
    "relationships": {
      "owner": {
        "data": {
          "type": "users",
          "id": "test@test.com",
          "links": {
            "self": "https://silo-dev.pod.blue/users/test@test.com"
          }
        }
      },
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-parent--",
          "links": {
            "self": "https://silo-dev.pod.blue/items/--test-item-parent--"
          }
        }
      },
      "children": {
        "data": [
          {
            "type": "items",
            "id": "--test-item-child--",
            "links": {
              "self": "https://silo-dev.pod.blue/items/--test-item-child--"
            },
            "attributes": {
              "title": "Child Item"
            }
          }
        ]
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Error checks: /foo

GET /foo
404
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /foo
404
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /foo
404
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /foo
404
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
OPTIONS /foo
200
200 OK
PUT /foo
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
FAKE /foo
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Error checks: /users

POST /users
400
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
400
415 Unsupported Media Type
{
  "unknown": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
400
415 Unsupported Media Type
{
  "data": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
400
415 Unsupported Media Type
{
  "data": [
  ]
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
409
415 Unsupported Media Type
{
  "data": {
    "type": "wrong_type"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
400
415 Unsupported Media Type
{
  "data": {
    "type": "users"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
400
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "attributes": null
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
400
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "attributes": [
    ]
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
400
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "attributes": {
      "name": "Test User"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
400
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "other@mail.com",
    "attributes": {
      "name": "Test User"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users
409
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "other@mail.com",
    "attributes": {
      "name": "Test User"
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /users
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Error checks: /users/me

GET /users/me
401
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users/me
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/me
401
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/me
400
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/me
400
415 Unsupported Media Type
{
  "unknown": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/me
400
415 Unsupported Media Type
{
  "data": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/me
400
415 Unsupported Media Type
{
  "data": [
  ]
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/me
409
415 Unsupported Media Type
{
  "data": {
    "type": "wrong_type"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/me
400
415 Unsupported Media Type
{
  "data": {
    "type": "users"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/me
409
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "other@mail.com"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /users/me
401
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Error checks: /users/--id--

GET /users/test
404
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /users/test@test.com
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
401
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
403
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
400
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
400
415 Unsupported Media Type
{
  "unknown": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
400
415 Unsupported Media Type
{
  "data": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
400
415 Unsupported Media Type
{
  "data": [
  ]
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
409
415 Unsupported Media Type
{
  "data": {
    "type": "wrong_type"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
400
415 Unsupported Media Type
{
  "data": {
    "type": "users"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
409
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "other@mail.com"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /users/test@test.com
403
415 Unsupported Media Type
{
  "data": {
    "type": "users",
    "id": "test@test.com"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /users/test@test.com
401
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /users/test@test.com
403
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Error checks: /items

POST /items
401
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
400
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
400
415 Unsupported Media Type
{
  "unknwon": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
400
415 Unsupported Media Type
{
  "data": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
400
415 Unsupported Media Type
{
  "data": [
  ]
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
409
415 Unsupported Media Type
{
  "data": {
    "type": "wrong_type"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
400
415 Unsupported Media Type
{
  "data": {
    "type": "items"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
400
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "attributes": null
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items
400
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "attributes": [
    ]
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /items
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Error checks: /items/mine

GET /items/mine
401
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items/mine
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/mine
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /items/mine
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Error checks: /items/--id--

GET /items/test
404
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
POST /items/--test-item-parent--
405
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
401
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
403
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
400
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
400
415 Unsupported Media Type
{
  "unknown": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
400
415 Unsupported Media Type
{
  "data": null
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
400
415 Unsupported Media Type
{
  "data": [
  ]
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
409
415 Unsupported Media Type
{
  "data": {
    "type": "wrong_type"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
400
415 Unsupported Media Type
{
  "data": {
    "type": "items"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
409
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-child--"
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
409
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-parent--",
    "relationships": {
      "parent": {
        "data": {
          "type": "items",
          "id": "--fake-id--"
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
409
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-parent--",
    "relationships": {
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-parent--"
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
PATCH /items/--test-item-parent--
409
415 Unsupported Media Type
{
  "data": {
    "type": "items",
    "id": "--test-item-parent--",
    "relationships": {
      "parent": {
        "data": {
          "type": "items",
          "id": "--test-item-child--"
        }
      }
    }
  }
}
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /items/--test-item-child--
401
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /items/--test-item-child--
403
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Error checks: Deletes of non-empties

DELETE /users/test@test.com
409
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /items/--test-item-parent--
409
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}

Clean up!

DELETE /items/--test-item-child--
204
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /items/--test-item-grandchild--
204
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /items/--test-item-parent--
204
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /users/test@test.com
204
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}
DELETE /users/me
204
415 Unsupported Media Type
{
  "errors": {
    "status": "415",
    "title": "JSON:API Request error: Unsupported Media Type"
  }
}