Skip to content

Make JSON:API server configurable using Attributes#26

Open
andrei-stsiapanau wants to merge 1 commit intolaravel-json-api:developfrom
andrei-stsiapanau:feature/serve-schema-attribute
Open

Make JSON:API server configurable using Attributes#26
andrei-stsiapanau wants to merge 1 commit intolaravel-json-api:developfrom
andrei-stsiapanau:feature/serve-schema-attribute

Conversation

@andrei-stsiapanau
Copy link

Add support for Attributes for the JSON:API Server.
Now multiple Schemas can be attached to the Server using PHP Attribute:

#[ServeSchema(AcmeSchema::class)]
class AcmeServer extends BaseServer
{
    public function serving(): void
    {
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant