[p2pu-dev] Redirection for API calls to an API_SERVER
Dirk Uys
dirk at p2pu.org
Thu May 17 11:31:23 UTC 2012
Hi Jose
I haven't had an opportunity to look at all the changes yet, but it
seems like you are making good progress so far!
>From what I gather the idea is to be able to run either the API or the
site, but not both (according to the comments i read here
https://github.com/josmas/lernanta/commit/7f59a769581f2607c883db7dc0e1672fecc80faa).
Maybe we can have the ability to enable/disable both independently.
I don't know if this is more important in the long term or in the
short term? In the short term we don't want to run an API that may
overtax the server, but in the long term the API may be an integral
part of the platform.
Just something small - I saw in
https://github.com/josmas/lernanta/blob/api/lernanta/requirements/prod.txt#L17
that there are some >= requirements. Prefer == requirements, you never
know when an update to a package will break stuff :)
I think we need to think about where the API is headed. There are a
few possible use cases that I can think off:
- We can use it to allow 3rd party components and integration with
other learning platforms
- We can use it internally within Lernanta to create a more modular
system and allow 3rd party components to co-exist with the P2PU
platform
- We can use it to satisfy specialized needs like extracting
anonymized metrics from the P2PU platform
Maybe I also need a bit more background, because I wasn't around when
the API work started. Do you have a specific use case in mind?
I think we all know that working on an API is extremely important, but
I'm not sure exactly how the API should look at this moment.
Cheers
d
More information about the p2pu-dev
mailing list