Skip to content

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

Closed

Description

@atom2ueki

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

Activity

  1. gfosco commented on Feb 2, 2016

    @gfosco
    Contributor

    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

  2. atom2ueki commented on Feb 2, 2016

    @atom2ueki
    Author

    @gfosco I see, it works, thanks

  3. added a commit that references this issue on Feb 14, 2016
  4. oyvindvol commented on Sep 14, 2016

    @oyvindvol

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions