forked from JSONAPIdotNET/JSONAPI.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIResourceObject.cs
More file actions
41 lines (35 loc) · 1.01 KB
/
IResourceObject.cs
File metadata and controls
41 lines (35 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace JSONAPI.Documents
{
/// <summary>
/// Represents a JSON API resource object
/// </summary>
public interface IResourceObject
{
/// <summary>
/// The type of the resource
/// </summary>
string Type { get; }
/// <summary>
/// The ID of the resource
/// </summary>
string Id { get; }
/// <summary>
/// Attributes of the resource
/// </summary>
IDictionary<string, JToken> Attributes { get; }
/// <summary>
/// Relationships between the resource and other JSON API resources
/// </summary>
IDictionary<string, IRelationshipObject> Relationships { get; }
/// <summary>
/// A link to the resource
/// </summary>
ILink SelfLink { get; }
/// <summary>
/// Metadata about this particular resource
/// </summary>
IMetadata Metadata { get; }
}
}