packages/api-gateway/src/endpoint.js
function Endpoint(spec, resourcePath, method) {
  this.method = method;
  this.resourcePath = resourcePath || '/';
  this.spec = spec;
}
function Endpoint(spec, resourcePath, method) {
  this.method = method;
  this.resourcePath = resourcePath || '/';
  this.spec = spec;
}
function Endpoint ( spec , resourcePath , method ) { this . method = method ; this . resourcePath = resourcePath || '/' ; this . spec = spec ; }
The specification of an API endpoint
@param {Object} spec - Swagger/OpenAPI specification of the endpoint
@param {string} resourcePath - path of the endpoint
@param {string} method - HTTP method of the endpoint
@constructor
The specification of an API endpoint