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

Add data structure for NPF Content Blocks #108

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Funcke
Copy link

@Funcke Funcke commented Mar 3, 2020

As a developer, I really like to get a very good idea about the hows and whats regarding the data I need to send to an API.
At this point either API documentation (e.g. OpenAPI, JSON API, etc.) or a very well structured client implementation provides the necessary insights.

This is why I want to propose a structure of PHP classes with typed properties for making the use of the API client more intuitive and easy to use - especially with the structural requirements and constraints introduced with NPF.

To further improve the developer experience for creating instances of the sometimes complex structures of NPF, a system of builder implementations additionally supporting this process will be introduced.

Disclaimer: This pull request is not yet ready for merge but should provide first insights into the ongoing development.
Please feel free to comment your ideas or critique 😁

Funcke and others added 7 commits March 3, 2020 15:56
* Adapt the request tests to support NPF and Legacy
* Add NPF API support to request client
* Add first tests for ContentBlock serialization
Initialize User object  + associated OwnBlog objects with the result of getUserInfo to make properties more accessible.
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