Table of Contents

Enum ClientIdGenerationMode

Namespace
JsonApiDotNetCore.Configuration
Assembly
JsonApiDotNetCore.Annotations.dll

Indicates how to handle IDs sent by JSON:API clients when creating resources.

[PublicAPI]
public enum ClientIdGenerationMode

Fields

Allowed = 1

Allows a client to create a resource with a client-supplied ID, but does not require it.

Forbidden = 0

Returns an HTTP 403 (Forbidden) response if a client attempts to create a resource with a client-supplied ID.

Required = 2

Returns an HTTP 422 (Unprocessable Content) response if a client attempts to create a resource without a client-supplied ID.