· ildyria · Active Development · 1 min read
Bite-size v6: Edit photos
Bite-size v6 is a series of small post showing the progress made on the development of the future version of Lychee.
After taking some time off for personal reasons and some fixing minor bugs, I finally added the endpoint to edit pictures. As opposed to the version 4, this one will have a single API endpoint to edit all parameters. I still need to add the ability to edit some of the exif data.
On the not-so-great news, I decided to drop the support of dedoc/scramble. It was used in the version 4 to provide easy API documentation. Unfortunately, scramble fails at the following:
- proper software design respecting SOLID architecture (refusal to have proper design with interface and uses reflections instead to check if some methods are available).
- lack of static analysis such as Phpstan.
Furthermore, with version 6 we are now using Spatie Data. This allows us to generate typescripts definitions from those objects, and thus ensuring stronger type compatibility between front-end and back-end. Unfortunately Spatie Data is only supported in the pro version of Scramble, we respect the decision of romalytvynenko and remove it as we are no longer able to use it anymore.
Thoughts on how to document the API in an automated way are welcome.