0

I finished building a Parse Server on Parse Platform. In my old Parse App, I utilize this REST API library for NodeJS

How should I configure (in Parse initialization or Parse library module) to send REST request to this newly built Parse Server. For example, configuration of my Parse Server contains:

{
"appId": my_app_id,
"masterKey": my_master_key,
"port": "1337",
"serverURL": my_server_url,
"publicServerURL": my_server_url,
"mountPath": "/parse",
"databaseURI": my_database_uri"
}

2 Answers 2

1

The node module is specify the serverUrl to api.parse.com, and origin mount path is '1'. https://github.com/Leveton/node-parse-api/blob/master/lib/Parse.js

Try these 2 step. 1. set Parse._api_host to your host. 2. change your mountPath to '1'.

Another Parse Rest API util is kaiseki, there is a pr to fit open source parse but not been merged. https://github.com/shiki/kaiseki/pull/35

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks very much. kaiseki helps me much!
0

You can use the request module and do something like this:

request({
                url: 'my_server_url',
                //qs: {foo:  bar}, //these are the query string if you want to use them
                method: 'POST', //you get the REST options here
                json: {
                    foo2:   bar1,
                    foo3: bar2
                }
            });

Hope this helps

1 Comment

Actually, I want to utilize the already built API github.com/Leveton/node-parse-api

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.