Fix api documentation

correctly display swagger-ui and change old api documentation
Merge pull request #3636 from vIiRuS/fixApiDoc

Fix api documentation