Skip to content

Commit

Permalink
Expose properties of resource
Browse files Browse the repository at this point in the history
Needed for external inspection to for example generate schema.
  • Loading branch information
bjornharrtell committed Mar 21, 2017
1 parent 6ff981f commit 632f4b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Saule/ApiResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ protected ApiResource()
/// </summary>
public string ResourceType { get; private set; }

internal IEnumerable<ResourceAttribute> Attributes => _attributes;
public IEnumerable<ResourceAttribute> Attributes => _attributes;

internal IEnumerable<ResourceRelationship> Relationships => _relationships;
public IEnumerable<ResourceRelationship> Relationships => _relationships;

internal string IdProperty { get; private set; }
public string IdProperty { get; private set; }

/// <summary>
/// Customize the type name of this resource. The default value
Expand Down Expand Up @@ -198,4 +198,4 @@ private static T GetUniqueResource<T>()
return resource;
}
}
}
}

0 comments on commit 632f4b0

Please sign in to comment.