Enum JsonApiEndpoints
- Namespace
- JsonApiDotNetCore.Controllers
- Assembly
- JsonApiDotNetCore.Annotations.dll
Lists the built-in JSON:API endpoints, described at https://jsonapi.org/format.
[PublicAPI]
[Flags]
public enum JsonApiEndpoints
Fields
All = Query | CommandRepresents all JSON:API endpoints.
Command = Post | PostRelationship | Patch | PatchRelationship | Delete | DeleteRelationshipRepresents the set of JSON:API endpoints to change resources and relationships.
Delete = 256Represents the endpoint to delete an existing resource.
Example endpoint:
DELETE /articles/1 HTTP/1.1DeleteRelationship = 512Represents the endpoint to remove resources from a to-many relationship.
Example endpoint:
DELETE /articles/1/relationships/revisions HTTP/1.1GetCollection = 1Represents the endpoint to get a collection of primary resources.
Example endpoint:
GET /articles HTTP/1.1GetRelationship = 8Represents the endpoint to get a relationship value.
Example endpoints:
GET /articles/1/relationships/author HTTP/1.1GET /articles/1/relationships/revisions HTTP/1.1GetSecondary = 4Represents the endpoint to get a secondary resource or collection of secondary resources.
Example endpoints:
GET /articles/1/author HTTP/1.1GET /articles/1/revisions HTTP/1.1GetSingle = 2Represents the endpoint to get a single primary resource by ID.
Example endpoint:
GET /articles/1 HTTP/1.1None = 0Represents none of the JSON:API endpoints.
Patch = 64Represents the endpoint to update the attributes and/or relationships of an existing resource.
Example endpoint:
PATCH /articles/1 HTTP/1.1PatchRelationship = 128Represents the endpoint to perform a complete replacement of a relationship on an existing resource.
Example endpoints:
PATCH /articles/1/relationships/author HTTP/1.1PATCH /articles/1/relationships/revisions HTTP/1.1Post = 16Represents the endpoint to create a new resource with attributes, relationships, or both.
Example endpoint:
POST /articles HTTP/1.1PostRelationship = 32Represents the endpoint to add resources to a to-many relationship.
Example endpoint:
POST /articles/1/revisions HTTP/1.1Query = GetCollection | GetSingle | GetSecondary | GetRelationshipRepresents the set of JSON:API endpoints to query resources and relationships.