Added all the endpoint definitions for the swagger file.