Add register api function
Merge branch 'master' of https://github.com/omg-insa/server into develop