icapps / php-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

General requests without identifier

sanhofman opened this issue · comments

Provide general requests without identifier (entity) + include in API Platform docs

Following REST philosophy all requests for retrieving data should have identical URL's, ea: /api/user/profile/{id}.

This isn't possible with JWT as FE doesn't know user profile ID, for example:

  • Get active user profile
  • Get active user x-data

=> provide a general user info endpoint on which we include relations. Using those IDs the detail endpoints can be utilized.