Skip to content

Commit

Permalink
More cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed Dec 20, 2023
1 parent 9ab2f61 commit c679183
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 121 deletions.
4 changes: 2 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#AUTH_CLIENT_ID="CHANGEME"

#
# Here be dragons!
# Here be dragons, you really have no reason to ever change these!
#
#DAPR_STORE_NAME="statestore"
#DAPR_ORDERS_TOPIC="orders-queue"
#DAPR_PUBSUB_NAME="pubsub"
#DAPR_PUBSUB_NAME="pubsub"
64 changes: 0 additions & 64 deletions CONTRIBUTING.md

This file was deleted.

4 changes: 3 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Copyright 2021 Ben Coleman
MIT License

Copyright 2023 Ben Coleman / Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
Expand Down
21 changes: 11 additions & 10 deletions etc/api-check.http
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#@host = staging.daprstore.benco.io
#@host = daprstore.kube.benco.io
@host = localhost:9000
@user = {{user}}

# ===================================================================
# Products API
Expand All @@ -27,19 +28,19 @@ GET http://{{host}}/v1.0/invoke/products/method/search/Paisley
# ===================================================================

### Add products to cart
PUT http://{{host}}/v1.0/invoke/cart/method/setProduct/00000000-1111-2222-3333-abcdef123456/prd001/6
PUT http://{{host}}/v1.0/invoke/cart/method/setProduct/{{user}}/prd001/6

### Get cart
GET http://{{host}}/v1.0/invoke/cart/method/get/00000000-1111-2222-3333-abcdef123456
GET http://{{host}}/v1.0/invoke/cart/method/get/{{user}}

### Clear cart
PUT http://{{host}}/v1.0/invoke/cart/method/clear/00000000-1111-2222-3333-abcdef123456
PUT http://{{host}}/v1.0/invoke/cart/method/clear/{{user}}

### Submit cart
POST http://{{host}}/v1.0/invoke/cart/method/submit
content-type: application/json

"00000000-1111-2222-3333-abcdef123456"
"{{user}}"



Expand All @@ -48,10 +49,10 @@ content-type: application/json
# ===================================================================

### Get existing order
GET http://{{host}}/v1.0/invoke/orders/method/get/u3E8i
GET http://{{host}}/v1.0/invoke/orders/method/get/LsWIO

### Get orders for user
GET http://{{host}}/v1.0/invoke/orders/method/getForUser/00000000-1111-2222-3333-abcdef123456
GET http://{{host}}/v1.0/invoke/orders/method/getForUser/{{user}}



Expand All @@ -60,20 +61,20 @@ GET http://{{host}}/v1.0/invoke/orders/method/getForUser/00000000-1111-2222-3333
# ===================================================================

### Check a user
GET http://{{host}}/v1.0/invoke/users/method/isregistered/00000000-1111-2222-3333-abcdef123456
GET http://{{host}}/v1.0/invoke/users/method/isregistered/{{user}}

### Get a user
GET http://{{host}}/v1.0/invoke/users/method/get/00000000-1111-2222-3333-abcdef123456
GET http://{{host}}/v1.0/invoke/users/method/get/{{user}}

### Get a user from private endpoint
GET http://{{host}}/v1.0/invoke/users/method/private/get/00000000-1111-2222-3333-abcdef123456
GET http://{{host}}/v1.0/invoke/users/method/private/get/{{user}}

### Register new user
POST http://{{host}}/v1.0/invoke/users/method/register
content-type: application/json

{
"userId": "00000000-1111-2222-3333-abcdef123456",
"userId": "{{user}}",
"email": "[email protected]",
"displayName": "API TEST"
}
2 changes: 1 addition & 1 deletion scripts/local-gateway/dapr.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
upstream dapr-sidecar {
server localhost:39377; #dapr
server localhost:43583; #dapr
}

upstream frontend-host {
Expand Down
9 changes: 0 additions & 9 deletions testing/postman_env_aks.json

This file was deleted.

34 changes: 0 additions & 34 deletions testing/reports.html

This file was deleted.

0 comments on commit c679183

Please sign in to comment.