Skip to content

[Question] : User management - best way #185

Open
@Grazulex

Description

@Grazulex

Hello,
I have more a question about structure.
I have a API with a token (bearer) authentication. I used for this Sanctum.

My question is :
What is the best way to management the user with Json:Api ?
Do you create a API controller for this and you put this in the "api/v1/" or not ?
What do you do with the response of the login/register action...do you format this in "application/vnd.api+json" like the others actions from the others ressources or you used a simple "application/json" with the user informations and token ?

In this site of JSON:API (https://jsonapi.org/) I don't find any recommendation or speficiations about the auth reponse and format.

Thanks you

Jean-Marc

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions