fadedreamz fadedreamz - 1 year ago 148
reST (reStructuredText) Question

dynamic resource publishing in restbed

I am using restbed.
I have an endpoint where a user can request (POST) to create a new resource. Once this endpoint is called, I would like to publish the resource under a new URI and return it to user, so that he/she can access it.

How should I proceed to achieve dynamic resource publishing in restbed?

Thanks in advance.

Answer Source

Currently we've not implemented this feature. It is however on our road map for the near future.

Please feel free to have a crack at implementing and submitting a pull-request.

Top of my head steps required

  1. Remove runtime checking from Service::publish and Service::suppress.
  2. In a thread safe manner update the Service::m_resources.

If you open a ticket as 'Runtime modifications' we can further discuss this feature.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download