generalparse

Authenticate requests against the Parse API

When accessing the Bitnami Parse Server Stack via a browser or other HTTP client, you may see a response that states:

{"error":"unauthorized"}

This occurs if your request does not include the necessary credentials. To resolve this, first obtain your Application ID and Master Key from the /opt/bitnami/apps/parse/htdocs/server.js file. Then, issue a request containing these credentials.

Here is a sample request to store a file:

$ curl -X POST -H "X-Parse-Application-Id: APP_ID" -H "X-Parse-Master-Key: MASTER_KEY" -H "Content-Type: text/plain" -d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' http://SERVER-IP/parse/classes/GameScore

Remember to replace the APP_ID and MASTER_KEY placeholders with the actual access credentials. Following this, execute the following request to obtain information about the file stored previously:

$ curl -X GET -H "X-Parse-Application-Id: APP_ID" http://SERVER-IP/parse/classes/GameScore
Last modification December 21, 2022