ember-nexus / api

Knowledge Graph API
https://ember-nexus.github.io/api
GNU Affero General Public License v3.0
9 stars 1 forks source link

POST /register should normalize properties before saving them #282

Open Syndesi opened 2 months ago

Syndesi commented 2 months ago

The endpoint POST /register currently copies properties directly from the user's request to the database, which might result in unwanted behavior. Instead, the provided properties should first be normalized / validated, similar to the way it is handled in the POST / and POST /<uuid> endpoints. They are currently using the service src/Service/CreateElementFromRawDataService.php.

Tasks: