vaimee / zion

A scalable Thing Description Directory
Apache License 2.0
17 stars 4 forks source link

#12 POST /things should not allow a TD with id #16

Closed ivanzy closed 2 years ago

ivanzy commented 2 years ago

When POST a valid TD with an id, Zion replies with 400 and the following error message.

{
  "type": "/errors/types/non-anonymous-thing-description",
  "title": "Invalid Identified Thing Description",
  "status": 400,
  "detail": "POST /things endpoint does not accept Thing Description with id, only anonymous Thing Description."
}

Tests were added to enforce the expected behavior.