API update #118
Labels
No Label
backlog
bug
duplicate
enhancement
feature
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
in discussion
invalid
priority
1
priority
2
priority
3
priority
4
priority
5
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: IT-Naturschutz/konova#118
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status quo
The API has not been used yet, so we do not need to change the version from
v1
intov2
.There has been some changes to CompensationAction, which is not reflected in the API currently. Furthermore we should think about pagination support, since fetching all existing data could result in a large response.
Pagination
Pagination is now supported for
GET
requests on all major datatypes (including EcoAccountDeduction)Example:
next
containsnull
if no further page exists. Otherwise there will be the url to the next available page.Parameters
Pagination can be configured on a request using the
GET
parametersrpp
: Defines the results per pagep
: Defines the requested pageActionType
CompensationAction provides support for multiple
action_type
entries to define a compensation action more detailed. The API has been extended to provide support for these changes.GET
Example
POST / PUT
Example
Merged in #119