Update API docs for submissions/entity geodata endpoints#1725
Open
brontolosone wants to merge 1 commit intogetodk:masterfrom
Open
Update API docs for submissions/entity geodata endpoints#1725brontolosone wants to merge 1 commit intogetodk:masterfrom
brontolosone wants to merge 1 commit intogetodk:masterfrom
Conversation
8db2127 to
3599746
Compare
5 tasks
3599746 to
244b70c
Compare
244b70c to
9207942
Compare
| description: An [OData-style `$filter` query](/central-api-odata-endpoints/#data-document) to filter the submissions by. | ||
| schema: | ||
| type: string | ||
| - name: $limit |
Member
There was a problem hiding this comment.
I thought "limit" was $top in OData land?
| schema: | ||
| type: string | ||
| example: "/some_group/some_geopoint" | ||
| description: Extract geoinformation from the specified field. At most one field can be specified. If no field is specified, the "default" field (the first geofield not directly or indirectly part of any repeatroup) is used. |
Member
There was a problem hiding this comment.
I forget, does fieldpath support fields in repeat groups? I know the default excludes repeat groups, but what if a field in a repeat group is specified?
| schema: | ||
| type: string | ||
| example: "/some_group/some_geopoint" | ||
| description: Extract geoinformation from the specified field. At most one field can be specified. If no field is specified, the "default" field (the first geofield not directly or indirectly part of any repeatroup) is used. |
Member
There was a problem hiding this comment.
Suggested change
| description: Extract geoinformation from the specified field. At most one field can be specified. If no field is specified, the "default" field (the first geofield not directly or indirectly part of any repeatroup) is used. | |
| description: Extract geoinformation from the specified form field. At most one field can be specified. If no field is specified, the default is the first geofield that is not part of any repeat group. |
Just a few tweaks here:
- "repeatroup" → "repeat group"
- No quotes around "default"
- I don't totally follow the distinction between directly vs. indirectly part of a repeat group. Is it how deeply the field is nested within a repeat group? If so, I think we can probably skip it for clarity.
Comment on lines
-8489
to
-8492
|
|
||
| ⚠️ The specifics of this endpoint are likely to change in future releases, and the parameters this endpoint takes are not all documented. | ||
| Its current behaviour should not be depended upon. | ||
| Use cases for this API can be discussed on [the forum](https://forum.getodk.org/). |
Member
There was a problem hiding this comment.
How about adding the same sort of line as you did for submissions:
You can use an [OData-style `$filter` query](/central-api-odata-endpoints/#data-document) to filter the submissions.
Comment on lines
+8523
to
+8533
| - name: $limit | ||
| in: query | ||
| schema: | ||
| type: number | ||
| example: 100 | ||
| description: Impose a limit on the number of entities to extract geoinformation from. | ||
| - name: $search | ||
| in: query | ||
| description: The `$search` querystring parameter can be used to search entity data (user-defined properties) and the `label` field, using the same search behavior as the [OData Dataset Service](/central-api-odata-endpoints/#odata-dataset-service). | ||
| schema: | ||
| type: string |
Member
There was a problem hiding this comment.
$filter here as well, right?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: getodk/central#1396
What has been done to verify that this works as intended?
Watched CI not explode.
Why is this the best possible solution? Were any other approaches considered?
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
N/A
Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.
Error: Maximum recursion depth reachedBefore submitting this PR, please make sure you have:
make testand confirmed all checks still pass OR confirm CircleCI build passes