*** spldart <spldart!~james@bzflag/contributor/spldart> has quit IRC (Quit: Leaving) | 11:12 | |
*** BulletCatcher <BulletCatcher!~bc@bzflag/developer/BulletCatcher> has quit IRC (Ping timeout: 245 seconds) | 16:43 | |
*** the_map <the_map!the_map@gateway/vpn/privateinternetaccess/themap/x-38220869> has quit IRC (Read error: Connection reset by peer) | 18:03 | |
*** Opus <Opus!~opus@76.202.115.164> has joined #bzflag | 18:13 | |
*** the_map <the_map!~the_map@unaffiliated/the-map/x-1795707> has joined #bzflag | 18:50 | |
The_Noah | What can I do to help with the REST API? | 19:11 |
---|---|---|
allejo | are you familiar with PHP? | 19:48 |
The_Noah | I know a good amount. | 19:48 |
blast007 | I will work on getting some sort of plan written up | 19:54 |
The_Noah | Okay. | 19:54 |
blast007 | the intention for now is to support organizations, server hosting keys, groups, fetching of some user information (so you can add users to groups, for instance), and organization specific API keys | 19:58 |
blast007 | player registration will still be through for forums for the time being | 19:58 |
blast007 | database access will be a mix of mysql and postgresql, with all the new stuff being in postgresql | 19:58 |
blast007 | I'm not sure if symfony or API Platform support having connections to multiple databases in an easy way | 19:59 |
allejo | depending on our needs for mixing the two dbs, symfony does have a neat way of handling multiple connections | 20:01 |
blast007 | postgresql also has foreign data support: https://www.postgresql.org/docs/11/ddl-foreign-data.html https://www.percona.com/blog/2018/08/24/postgresql-accessing-mysql-as-a-data-source-using-mysql_fdw/ | 20:02 |
blast007 | https://github.com/EnterpriseDB/mysql_fdw | 20:03 |
blast007 | some parts of the API will also be "private", in the sense that it will only be available for the project-run front-end for managing organizations/groups/keys | 20:04 |
blast007 | so, the entire server hosting keys part is likely a private API, unless there's a good reason to have it otherwise | 20:04 |
blast007 | organization creation will be private, as would listing all organizations | 20:05 |
blast007 | I've started working with API Platform, and I did have it working at an initial level with organizations and server hosting keys | 20:05 |
allejo | I haven't touched API Platform yet, but does that just manage the endpoints for us? or does it magically take care of front-end stuff to some extent? | 20:08 |
blast007 | it *could* do front-end stuff, but it'd be React or Vue.js talking to the API from the client-side, and I'd rather talk to the API from the server-side | 20:14 |
allejo | i'm all for server side rendering of these pages | 20:17 |
blast007 | idea with the public API parts it that you'd have organization specific API keys to manipulate that organization's data | 20:34 |
blast007 | So, Leagutes United would be an organization, and create an API key to manage group memberships. Then the web interface on the LU site could add/remove users from the league group(s). | 20:35 |
allejo | ooooo that sounds beautiful | 20:35 |
blast007 | The_Noah: you could start going through their documentation and tutorials: https://api-platform.com/docs/distribution/ | 21:24 |
The_Noah | Okay, I'll do that. | 21:25 |
blast007 | I installed it the Symfony Flex way, not the docker way, and I'm using the Symfony WebServerBundle to run it for development | 21:25 |
blast007 | it's a pretty cool system | 21:26 |
blast007 | automatically exposes the API via OpenAPI and Swagger UI | 21:26 |
The_Noah | Nice! | 21:28 |
*** the_map <the_map!~the_map@unaffiliated/the-map/x-1795707> has quit IRC (Quit: if you see this, I'm probably restarting my computer to fix it) | 21:34 | |
*** the_map <the_map!the_map@gateway/vpn/privateinternetaccess/themap/x-38220869> has joined #bzflag | 21:34 | |
*** spldart <spldart!~james@2601:2c5:c600:2365::518d> has joined #bzflag | 22:04 | |
*** spldart <spldart!~james@2601:2c5:c600:2365::518d> has quit IRC (Changing host) | 22:04 | |
*** spldart <spldart!~james@bzflag/contributor/spldart> has joined #bzflag | 22:04 | |
*** ChanServ sets mode: +v spldart | 22:04 | |
*** BulletCatcher <BulletCatcher!~bc@bzflag/developer/BulletCatcher> has joined #bzflag | 23:02 | |
*** ChanServ sets mode: +v BulletCatcher | 23:02 |
Generated by irclog2html.py 2.17.3.dev0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!