First, need to create connected app in Salesforce. To create Connected Apps in Salesforce:
- Login Salesforce as administrator.
- Drop-down list of the account (upper-right), select Setup.
- Left-hand pane, App Setup > Create >Apps.
- Connected Apps panel, click "New".
- Fill in basic info: App Name - demo REST, API name. REST_Demo and contact email