Joshua POS

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:

OAuth

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 link

OAuth token endpoint:

POST /api/token

code=[authorization_code]&grant_type=authorization_code

Inventory retrieval system (bogus authorization):

GET /api/inventory?token=[access_token]

Push

The example POS can push data to the NearSt HTTP CSV endpoint.

Lead users to this page: /setup

Pull

The example inventory endpoint can also be accessed directly, using the following URL:

GET /api/inventory?token=sec_always_the_same_token