fetching variable values (or executing function) through a REST API is a great feature but for this to be more useful when you have multiple cores logging different type of data it would be great to add a reflection api.
So I set ut to add the code into the core. However when I started to implement it I found that there is already some code present in spark_protocol.cpp that does this. There is a CoAPMessageType::DESCRIBE message type that returns the function names, variables and types.
To try it out I added some code that returned this info when requesting a string with name ‘~’ and got (with a slightly changed main program)
So my question is how to access this cool information through the rest API?