I am using google cloud & database on mLab for deployment of the parse server. i have taken a compute engine instance and a bitnami parse-stack over it , i have configured all variables in server.js file accordingly to example provided by parse in github . Every api works fine like JAVASCRIPT , i am able make calls from javascript files and get data from database. But the issue is with RESTAPI, my parse server is not able to recognize rest api key.
This is the CURL from my API CONSOLE from dash board
curl -X POST \ -H "X-Parse-Application-Id: {my app id}" \ -H "X-Parse-REST-API-Key: undefined" \ http://serverURL/parse/functions/Show
this my server.js file during parse initialization
const parseServer = new ParseServer({ databaseURI: nconf.get('DATABASE_URI') || cloud: nconf.get('CLOUD_PATH') || appId: nconf.get('APP_ID'), masterKey: nconf.get('MASTER_KEY'),
serverURL: nconf.get('SERVER_URL'),
restAPIKey: nconf.get('REST_API_KEY'),
javascriptKey: nconf.get('JAVASCRIPT_KEY'),
clientKey: nconf.get('CLIENT_KEY'),
dotNetKey: nconf.get('.NET_KEY'),
}
As you could see the RESTAPI key is being undefined in the curl. i couldn't understand where was i making a mistake. Please provide me with some advice . Thanks in adavance.