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

refactor: change attributes to "fields" for JSON API compliance #8

Open
ThorstenSuckow opened this issue Jun 7, 2022 · 1 comment

Comments

@ThorstenSuckow
Copy link
Member

additionally, change responses and their datastructure. remove "success"-property

@ThorstenSuckow
Copy link
Member Author

ToDo:

  • sparse fieldsets should be considered for "attributes" selection
  • meta objects should contain all data that is not described as standard with the Json API
  • json to jsonApi decorators, or a converter strategy to pass to the entities

ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Jun 11, 2022
ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Jun 11, 2022
ThorstenSuckow added a commit to conjoon/extjs-dev-webmailsim that referenced this issue Jun 11, 2022
ThorstenSuckow added a commit to conjoon/rest-api-description that referenced this issue Jun 12, 2022
ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Jun 12, 2022
…esponse

made also sure that Authenticate uses 401/404 Exceptions based on state of authentication
(404 if MailAccount was not found, 401 if authentication failed); removed success property
from response

refs conjoon/php-lib-conjoon#8
ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Jun 12, 2022
ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Jun 12, 2022
ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Jun 12, 2022
only reason at this point a 401 could be returned is if the user is a guest
which is already checked by App\Http\V0\Middleware\Authenticate

refs conjoon/php-lib-conjoon#8
ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Jun 12, 2022
ThorstenSuckow added a commit to conjoon/rest-api-description that referenced this issue Jun 12, 2022
ThorstenSuckow added a commit to conjoon/extjs-app-webmail that referenced this issue Jun 13, 2022
ThorstenSuckow added a commit to conjoon/extjs-dev-webmailsim that referenced this issue Jun 13, 2022
ThorstenSuckow added a commit to conjoon/rest-api-description that referenced this issue Jun 16, 2022
ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Jun 16, 2022
ThorstenSuckow added a commit that referenced this issue Oct 17, 2022
should be part of concrete backend implementation, not library

refs #8
ThorstenSuckow added a commit that referenced this issue Oct 19, 2022
returns true if url targets a resource collection

refs #8
ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Oct 19, 2022
ThorstenSuckow added a commit to conjoon/lumen-app-email that referenced this issue Oct 19, 2022
ThorstenSuckow added a commit that referenced this issue Oct 23, 2022
updated annotations and type hints according to phpstan

refs #8
ThorstenSuckow added a commit that referenced this issue Oct 23, 2022
…UrlRegex

updated API from ResourceUrlRegex with naming and Arrayable interface

refs #8
ThorstenSuckow pushed a commit that referenced this issue Oct 25, 2022
ThorstenSuckow pushed a commit that referenced this issue Oct 28, 2022
ThorstenSuckow pushed a commit that referenced this issue Oct 30, 2022
update according to phpstan and PSR-12

refs #8
ThorstenSuckow pushed a commit that referenced this issue Nov 1, 2022
add Equatable to Template for comparing two templates for equality

refs #8
ThorstenSuckow pushed a commit that referenced this issue Nov 1, 2022
ThorstenSuckow added a commit that referenced this issue Nov 2, 2022
ThorstenSuckow added a commit that referenced this issue Nov 2, 2022
ThorstenSuckow pushed a commit that referenced this issue Nov 2, 2022
This reverts commit eb77197, reversing
changes made to 4d9b6f5.
ThorstenSuckow pushed a commit that referenced this issue Nov 9, 2022
@ThorstenSuckow ThorstenSuckow moved this to In Progress in V2.0 Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant