BASE_URL
/videocallshop-api.jsonJSON with API method definitions for Advanced REST client
(https://install.advancedrestclient.com/install).
BASE_URL
/call-request.htmlClient to enter in a waiting room as a client.
BASE_URL
/store-user.htmlClient to loggin as a store user, watch the queue and performs store user actions.
https://videocallshop-webapp-dev.herokuapp.com
https://videocallshop-webapp-prod.herokuapp.com
https://videocallshop-api-dev.herokuapp.com/call-request.html
https://videocallshop-api-prod.herokuapp.com/call-request.html
https://videocallshop-api-dev.herokuapp.com/store-user.html
https://videocallshop-api-prod.herokuapp.com/store-user.html
https://videocallshop-api-dev.herokuapp.com/
https://videocallshop-api-prod.herokuapp.com/
GET
- /
Ping.
public
POST
- /authentication/store
Authenticate a store user.
Content-Type: application/json
){
"email": "maurocg89@gmail.com",
"password": "sonserios10",
"onesignalPlayerId": "6392d91a-b206-4b7b-a620-cd68e32c3a76"
}
public
GET
- /stores
Get all the stores.
public
GET
- /stores/:storeId
Get info of a particular store.
public
POST
- /stores/:storeId/call-requests
Create a call request. It will automatically be added to the queue.
Content-Type: application/json
){
"email": "pacoamoroso@gmail.com",
"name": "Paco",
"lastName": "Amoroso",
"onesignalPlayerId": "6392d91a-b206-4b7b-a620-cd68e32c3a76"
}
public
Returns in a header Authorization a valid JWT Token for 2hs.
PATCH
- /stores/:storeId/call-requests/:callRequestId
Finish a call request. It has to have CALLED
status.
Content-Type: application/json
){
"status": "FINISHED"
}
storeUser.thisStore || (callRequestToken.thisStore && callRequestToken.thisCallRequest);
GET
- /stores/:storeId/call-requests/:callRequestId
Get a particular call request.
storeUser.thisStore || (callRequestToken.thisStore && callRequestToken.inQueue)
DELETE
- /stores/:storeId/call-requests/:callRequestId
Cancel a particular call request.
storeUser.thisStore || callRequestToken.thisStore && callRequestToken.thisCallRequest
GET
- /stores/:storeId/waiting-room
Get a waiting room.
storeUser.thisStore || callRequestToken.thisStore && callRequestToken.inQueue
WebSocket
- /waiting-room-socket
Connect with waiting room.
WAITING_ROOM_SENDED
: Emmit the hole waiting room for first time.QUEUE_CHANGED
: Emmit only the queue.storeUser.thisStore || (callRequestToken.thisStore && callRequestToken.inQueue)
Pass storeId query param.
POST
- /stores/:storeId/calls
Call a call request.
Content-Type: application/json
){
"callRequestId": 4
}
storeUser.thisStore
GET
- /stores/:storeId/calls/:callId
Get a particular call.
storeUser.thisStore || (callRequestToken.thisStore && callRequestToken.thisCall)
GET
- /stores/:storeId/calls
Get the calls from the store.
storeUser.thisStore || callRequestToken.thisCallRequest;
GET
- /payment-options
Get the payment options.
GET
- /shipping-options
Get the shipping options.
GET
- /stores/:storeId/calls-requests/:callRequestId/purchase-orders
Get the purchase orders of a call request.
storeUser.thisStore || callRequestToken.thisStore
DELETE
- /stores/:storeId/calls-requests/:callRequestId/purchase-orders/:purchaseOrderId
Delete a purchase orders of a call request.
storeUser.thisStore
POST
- /stores/:storeId/calls-requests/:callRequestId/purchase-orders
Attach a purchase order in a call request.
Content-Type: application/json
){
"shippingOptionId": 1,
"shippingPrice": 208.5,
"paymentOptionId": 1,
"province": "Santa Fe",
"city": "Rosario",
"address": "Zeballos 291 piso 6",
"items": [
{
"productName": "Tela negra",
"productDescription": "Retazo de tela negra",
"unitPrice": 291.2,
"quantity": 10
},
{
"productName": "Cinta metrica",
"unitPrice": 230,
"quantity": 12
}
]
}
storeUser.thisStore
GET
- /stores/:storeId/mercadopago-authorization-url
Create a link to associate the store with Videocallshop Marketplace (Mercadopago).
public
GET
- /mercadopago/store-authorization-code
Mercadopago redirect_uri. Stores authorization code and creates an access token for the store.
public