Implement mostly decent JSON API for channels and post creation

Now the possible id of the cannel/post is returned and channel/post is
indexed on creation without having to wait for gxsutil scan to happen

Note that the id is correct in normal usage, but if one try to overload
the API per eventually get the id of another channel/post with same data
but created by a different call, it is not dangerous so one trying to
overload the API is just getting a possibly wrong but equivalent
channel/post id returned.
This commit is contained in:
Gioacchino Mazzurco 2018-10-10 06:40:56 +02:00
parent c05c376351
commit 321fc8a8d4
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
3 changed files with 89 additions and 18 deletions

View file

@ -4,7 +4,7 @@
* *
* libretroshare: retroshare core library *
* *
* Copyright 2012-2012 by Robert Fernie <retroshare@lunamutt.com> *
* Copyright (C) 2012 Robert Fernie <retroshare@lunamutt.com> *
* Copyright (C) 2018 Gioacchino Mazzurco <gio@eigenlab.org> *
* *
* This program is free software: you can redistribute it and/or modify *