public HAResource(string id, HAPath path, string displaySingular, string displayPlural, List <HAEndpoint> endpoints, List <HAResource> nestedResources, HAResource?parentResource = null) { Id = id; Path = path; DisplaySingular = displaySingular; DisplayPlural = displayPlural; ParentResource = parentResource; Endpoints = endpoints; NestedResources = nestedResources; }
public HAEndpoint(HAResource resource, HAMethod method, List <HAParameter> parameters, HAPath path, string displayName, string functionName, HATypeObject?requestBody = null, HAType?responseBody = null, string?doc = null, HADeprecation?deprecation = null, List <HARight>?rights = null) { Resource = resource; Method = method; Parameters = parameters; RequestBody = requestBody; ResponseBody = responseBody; Path = path; DisplayName = displayName; FunctionName = functionName; Doc = doc; Deprecation = deprecation; Rights = rights; }