CyberfusionIO / cyberfusion-cluster-api-client

Cyberfusion Core API client
https://core-api.cyberfusion.io
MIT License
5 stars 3 forks source link

Version 2.0 #117

Open WilliamDEdwards opened 2 months ago

WilliamDEdwards commented 2 months ago

Discussed in https://github.com/CyberfusionIO/cyberfusion-cluster-api-client/discussions/91

Specific request classes

Problem: it is not clear which data is required to perform a certain action. Currently, the model is used for everything, for creating, updating or retrieving data.

Solution: use specific request classes, in which you MUST provide the required data and MAY provide optional data. When an object is retrieved, the model with all data is returned.

Solves https://github.com/CyberfusionIO/cyberfusion-cluster-api-client/issues/7

Enums

We can use proper enums (now that PHP 8.1 is required, see https://github.com/CyberfusionIO/cyberfusion-cluster-api-client/pull/116).

Auto-generation

The client will be mostly auto-generated.

Advantages:

Naming

WilliamDEdwards commented 1 month ago

Version 2.0 will be delayed by at least 2 weeks.

It was set for September 1st, 2024. But we will be making several improvements based on tests.

WilliamDEdwards commented 2 weeks ago

Version 2.0 is delayed by another 2 weeks (pessimistic ETA). A lot of progress is being made.