Skip to content
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

Implement endpoint to retrieve last modified GK #16

Open
kumy opened this issue Jun 9, 2019 · 3 comments
Open

Implement endpoint to retrieve last modified GK #16

kumy opened this issue Jun 9, 2019 · 3 comments

Comments

@kumy
Copy link
Member

kumy commented Jun 9, 2019

Raised in geokrety/geokrety-scripts#8

We should provide endpoints to permit retrieve updated/created GK since a date-time, it will help partners to synchronize from this source instead of export*.php scripts which are quite cpu intensive.

@kumy
Copy link
Member Author

kumy commented Jun 9, 2019

It should mimic current behavior of export*.php ie: ?modifiedsince=20100901000000 See doc https://new-theme.staging.geokrety.org/api.php

@kumy
Copy link
Member Author

kumy commented Jun 9, 2019

Ho seems it's already there ! 🤣

// since modifiedsince
} else if (isset($_GET['modifiedsince'])) {
$query = query($session, 'select-by-date.xq');
$query->bind('modifiedsince', strtoupper($_GET['modifiedsince']), 'xs:dateTime');

@kumy
Copy link
Member Author

kumy commented Jun 9, 2019

However, as the database includes only date (not datetime), it's not enough to be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant