Proposal add ?dry_run
option to POST /projects
What should be checked:
- User is allowed to create
- Submitted categories selection and if some are required or not
- Submitted project fields and if some are required or not
- Shortname is valid
- Full name is valid
- Descriptions validity (short & long)
⚠️ The current code is not meant to ease the extraction of verification, the refactoring is a bit tricky.
Limitations & security
The validation is done in 2 "steps":
- First we check if the user is allowed to create (permission, nb max project, etc)
- Then, all other parameters are checked (in other word, it's not possible to assert if shortname is valid if the creator doesn't have the right to create projects).
Error messages & L10N/I18N
- In case of errors, error code is 400 and the route returns an array of errors with the language of the REST caller
- When no errors, error code is 200 and body is empty
Mandatory clean-up
Before moving forward, we need to remove the SOAP project creation.