Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support client-generated IDs when creating resources #7

Open
tobyzerner opened this issue Dec 14, 2018 · 2 comments
Open

Support client-generated IDs when creating resources #7

tobyzerner opened this issue Dec 14, 2018 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@tobyzerner
Copy link
Owner

As per https://jsonapi.org/format/#crud-creating-client-ids

@tobyzerner tobyzerner added the enhancement New feature or request label Dec 14, 2018
@tobyzerner

This comment was marked as outdated.

@tobyzerner
Copy link
Owner Author

tobyzerner commented Aug 29, 2021

Likely API:

class FooResource
{
    public function id()
    {
        return Id::make()
            ->get(...)
            ->allowClientGenerated()
            ->default(...)
            ->set(...)
            ->validate(...)
    }
}

@tobyzerner tobyzerner added this to the v1.1 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant