public ApiResponseBuilder(HttpStatusCode responseCode)
        {
            baseResponse       = new ApiResponse();
            itemResponse       = new ApiItemResponse();
            collectionResponse = new ApiCollectionResponse();

            this.WithMeta(JsonApiConstants.StatusCodeMetaKey, responseCode);
        }
Beispiel #2
0
 public static T GetResourceAs <T>(this IApiItemResponse response)
 {
     return(GetAttributesAs <T>(response?.Data?.Attributes));
 }