Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5028

Accessing DF NONSQL SERVICe

$
0
0

Hi I did a fresh install of DF2 on plesk centos 6.5

everything in the install and config seems to be fine inclusing CORS setup and mongodb service

api docs generated fine as well and i am getting response there

but when i try to access it using either curl , or web request
passing all the required headers and parameter of api key and session

we have tried from linux mint , ubuntu 14.04 , mac book it's all the same

then there are problems

mostly are 400 ,401 and 403 errors

can you please help us out as how can we test it
the examples for curls are the ones that i have used before but tailored it as per df2

curl -i -k -3 -X POST http://domain.com:80/api/v2/user/session?api_key=b6b108fcf3ea9cdecbc9ecb4ed7bce6250f74758d7753e73db58d60df936dcb1 -d '{“email":"753@xyz.sc", “password":"123"}'

and as

curl http://753%40xyz.sc:123@domain.com:80/api/v2/user/session

even if i try to used postman (chrome extension for checking rest api)
it's still giving me same problem

on a side note , it won't allow user roles to be changed once done

thanks


Viewing all articles
Browse latest Browse all 5028

Trending Articles