-
Notifications
You must be signed in to change notification settings - Fork 32
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
How do I generate a dart client for custom nextcloud app? #2202
Comments
Hi, this is only possible if you have an OpenAPI specification for it. Which app are you trying to use? |
Ah, ok. This one: https://memories.gallery/ |
It doesn't look like it has one available, but you could generated one using https://github.com/nextcloud/openapi-extractor. It requires some work in the app though, as you need to add annotations for every endpoint. Alternatively you could write an OpenAPI specification by hand, but we will not add it to the official package due to quality and maintainability concerns. What is your use-case for a memories API client? |
I'd like to try create a native flutter app, as the default memories one is a bit slow on mobile devices. Thanks for the info :) |
Ok, thanks! |
Sorry to bother again, I've generated a openapi.yaml from observing the traffic. |
Yes! You should drop the file into What tool did you use to generated the specification? I wasn't aware something like that exists. |
Well, I navigated around the app, used firefox's save traffic to har file, then used https://github.com/jonluca/har-to-openapi to convert har to openapi.yml. Not sure if it's correct, first time doing it. |
Are there any guides on this? I'd like to generate a dart client from an existing nextcloud app - is that possible?
The text was updated successfully, but these errors were encountered: