+async function createUserRetryWrapper (req: express.Request, res: express.Response, next: express.NextFunction) {
+ const options = {
+ arguments: [ req ],
+ errorMessage: 'Cannot insert the user with many retries.'
+ }
+
+ await retryTransactionWrapper(createUser, options)
+
+ // TODO : include Location of the new user -> 201
+ return res.type('json').status(204).end()
+}
+
+async function createUser (req: express.Request) {
+ const body: UserCreate = req.body