Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call cloud code from localhost parse server? #161

Closed
atom2ueki opened this issue Feb 2, 2016 · 3 comments
Closed

How to call cloud code from localhost parse server? #161

atom2ueki opened this issue Feb 2, 2016 · 3 comments

Comments

@atom2ueki
Copy link

I'm migrating my cloud code to my localhost parse server, follow the guide copy cloud code to the cloud/main.js, but how can I call the defined function inside?

curl -X POST \
-H "X-Parse-Application-Id: myAppID" \
-H "X-Parse-REST-API-Key: myRestApiKey" \
-H "Content-Type: application/json" \
-d '{}' \
http://localhost:5000/parse/1/functions/hello
@gfosco
Copy link
Contributor

gfosco commented Feb 2, 2016

Drop the /1/ and this should work. /1 was the path on api.parse.com, but in parse-server the default is just /parse

http://localhost:5000/parse/functions/hello

@atom2ueki
Copy link
Author

@gfosco I see, it works, thanks

@gfosco gfosco closed this as completed Feb 2, 2016
montymxb pushed a commit to montymxb/parse-server that referenced this issue Feb 14, 2016
@oyvindvol
Copy link

oyvindvol commented Sep 14, 2016

@gfosco I am getting successful cloud function calls also when providing a wrong REST Api key. Is this supposed to happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants