Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

id should be optional #198

@MickL

Description

@MickL

According to readme:

The in-memory web api library currently assumes that every collection has a primary key called id.

And:

If you do not specify the id, the service generates one via the genId method.

Which kind of contradict each other, don't they? Anyway there should be the option to have no id what so ever. For example the following response is not possible to generate:

interface AuthResponse {
    success: boolean;
    token: string;
}

I know the readme says you don't want to make every API possible. But why won't you? This module is great why not develop it further than for Tour of Heroes? Should we fork it and develop it independently?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions