This is a simple example application that helps us test interactions between NearSt and POS providers with different setups.
The following modes of operation are supported:
A very minimalistic OAuth login system (non-compliant, non-secure!) is recreated to test interactions with OAuth POS providers.
OAuth login URL:
/oauth/authorize?response_type=code&redirect_uri=https://prospects.near.live/connect/example-oauth&state=xxx
Example linkOAuth token endpoint:
POST /api/token
code=[authorization_code]&grant_type=authorization_code
Inventory retrieval system (bogus authorization):
GET /api/inventory?token=[access_token]
The example POS can push data to the NearSt HTTP CSV endpoint.
Lead users to this page: /setup
The example inventory endpoint can also be accessed directly, using the following URL:
GET /api/inventory?token=sec_always_the_same_token