-
Notifications
You must be signed in to change notification settings - Fork 81
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
API Polish and Release #447
Comments
@oliverroick there are a couple API calls we need to add for the QGIS plugin to work. Notes from @ian-ross here. Let's discuss before you begin work. |
The API looks quite solid, only a few issues that we should address:
None of these issues are difficult to fix. I could probably tackle all of them in a day’s work. I can do that tomorrow. DocumentationThe generated API docs are OK to work with for experienced developers, but I think we should put some effort in writing proper documentation, which includes documentation of all parameters, their types and accepted or expected values, possible response codes and what they mean, plus some examples. Writing the documentation will be a time-consuming task. I assume one person would have to work on this for about a week. I had good experiences documenting REST APIs with Docbox. You write the docs in Markdown, and it creates a nicely laid out and structured document. I would suggest using that; we need to work out how we can integrate the docs into our existing documentation. |
What do you think about the extra features required for the QGIS plugin? (Described briefly here: https://devwiki.corp.cadasta.org/@QGIS%20Plugin) |
Right, I knew I forgot something. I think, that's possible, but it seems like a bigger task and out of scope for this sprint. We should work out what permission filters each endpoint needs to support first. |
I definitely agree it's out of scope for the current sprint. For the permissions filtering, I was wondering whether we could do something via the existing |
I made #653 as a placeholder for the additional API features needed, it certainly needs to be written out more though. |
I will add some thoughts after I finished this task |
Status update
This was working correctly, the endpoint does not support creating new projects.
Fixed
Fixed
Fixed |
Status updateI did another check and found that the relationships are not serialized correctly for both I tried to solve the issue, but I ran into circular imports because The cleanest solution would be to combine the In other words, I have to think about it a little longer than a Friday afternoon. I will push this to next week. @ian-ross, @seav do you have other ideas? /cc @wonderchook |
I would suggest to remove listing the relationship field from the serialized party and spatial unit objects. This should remove the dependency of the Anyway, if the user wants to explore the relationships, we still have the API endpoints that query the relationships given the party or spatial unit ID:
P.S. I really want to combine both apps into 1 and I have suggested it before, but I guess it's a bit late for that now. |
Prior to announcing our API release we need to do the following:
The text was updated successfully, but these errors were encountered: