RetroShare / RSNewWebUI

30 stars 20 forks source link

Api for Boards doesnt works #53

Closed defnax closed 2 years ago

defnax commented 2 years ago

Hi, i have tested with curl the api for boards but it doesnt works, for channels/forums working perfect. or someone forget to enable/add api feature for boards?

@G10h4ck @zeners @csoler @Kumaravinash9 @Sukhamjot-Singh @sehraf

image

defnax commented 2 years ago

when i add this to rsposted.h class then the api will work? @G10h4ck @csoler @zeners @rottencandy or some needs to add this importend api stuff to rsposted class image

https://github.com/RetroShare/libretroshare/blob/master/src/jsonapi/README.adoc


sehraf commented 2 years ago

That should do the trick.


( Since the global pointer is already exposed )

/**
 * Pointer to global instance of RsGxsChannels service implementation
 * @jsonapi{development}
 */
extern RsPosted* rsPosted;
defnax commented 2 years ago

hi maybe you can check with my pr is right, possible mistakes? maybe not complete or someone do the rest

https://github.com/RetroShare/libretroshare/pull/31