Hi, I just install the Flectra CE 1.3 version , and install the rest api module , and I using rested Client to testing the API function , It seem to now working ?
You need to use --db-filter parameter while Starting the server. Please read the module documentation.
Tks for reply , could you give me a example for the db-filter , tks！
and I set the db-filter in flectra.conf as follow …
but it return the same result
Is there something to setup in otherplace ？
Is really no one can answer me this question?
I was completely according to the set of documents to do, but still can’t get the right result? For example in the video can’t mention "db - filter Settings. I also posting my config file ,it should be able to judge whether to set up the right, but is not directly in the face of himself. tks!
You have used a dynamic domain filter which depends on the url of your instance. Can you try with a static database filter and check.
I completely is according to the document, according to the video, in accordance with the instructions to test, but why still can not get the correct results? Now attach our server Settings and start the script has the test result, hope to get the real solution and solutions, exactly what went wrong, now is a good idea.
sudo su flectra
./opt/flectra/flectra/flectra-bin --config=/ect/flectra/flectra.conf --db-filter yourdatabasename -d yourdatabasename
and then try to connect via REST API
Tks for reply
Does REST-API not support the db - filter, dbname parameter is written in the config file?
It does support that as well but do you know what you have used as database filter in your config file?
About REST-API ,I still can not get the properly result
Attachment is the command and configuration details I launched.
But the result is still 400. . .
Your default flectra service seems to be still running.
sudo service flectra stop
And then run the commands I gave.
ps -ax | grep flectra
To see the running instances of Flectra.
Do you still have db filter in your config?
Attached to the flectra.conf file
There is no attachment
i also have the same problem, already set the db_name and db_filter in flectra_conf but the REST post result always wrong dbname…
found the problem, by the default OAuthlib is not installed, so I install OAuthlib and REST API is working…