Skip to content

Resource identifier id doesn't have to be a number #5

@thnico

Description

@thnico

Angular2-jsonapi only supports numbers for resource identifier (id). Ex:

findRecord(type: { new (data: any): JsonApiModel; }, id: number, params?: any, headers?: Headers): Observable<JsonApiModel>;

It's not compatible with Uuid for example.
The JSON API specification doesn't specify that identifiers have to be number.

Therefore, can we allow the identifier to be a string as well ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions