code: function Endpoint(spec, resourcePath, method) {
    this.method = method;
    this.resourcePath = resourcePath || '/';
    this.spec = spec;
  }
docs: 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