Hitchwiki / hitchwiki

The Hitchhiker's Guide to Hitchhiking the World
https://hitchwiki.org
32 stars 9 forks source link

Maps API as MediaWiki extension #192

Closed simison closed 9 months ago

simison commented 4 years ago

With Hitchwiki Maps broken (reading works, writing doesn't) and codebase being so legacy that it literally doesn't make any sense to touch it, I'd propose we:

The first pragmatic step for using this API would be to make it possible for MyHitchhiking spots app to "liberate" both reading AND writing the maps data. Folks can then build mobile apps.

Another aspect is authentication. The API should be writable only with the Hitchwiki account — as long as we implement this as MediaWiki Extension, clients can authenticate against MediaWiki API.

For now, the website version would continue being read-only. With the new API, might be someone will eventually write a new modern client. :-) All these should anyway use the same API and same database, and same authentication.

The extension should be pretty generic, so I'd suggest you just set up a basic MediaWiki locally. Write to me and I'll send you the hitchwiki SQL database dump.

Spec

MediaWiki extension

Authentication

I don't know the state of API authentication at Hitchwiki.org (there might be some captchas complicating it, or some configs need adjusting). It's ok if signup, password reset, etc works just on the web, especially since those work in the mobile web anyway.

Writing

Reading

cc @Akronix @leocarona @omelnyk

Akronix commented 4 years ago

Thank you for the follow up Mikael!

I have much other stuff in my priority list right now. But if I find a time slot for it I'll let you know.