API endpoint and Swagger