Skip to content

Commit 0a7532d

Browse files
committed
Update API calls to proper format.
1 parent 2243ca4 commit 0a7532d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

auth-function-mesh/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ The functions will run in parallel in the same deployment. If the workload is to
1515
For testing it with curl:
1616
``` bash
1717
# Encrypt
18-
curl https://api.metacall.io/viferga/metacall/examples/v1/call/encrypt -X POST --data '{ "text": "asd" }'
18+
curl https://api.metacall.io/viferga/metacall-examples/v1/call/encrypt -X POST --data '{ "text": "asd" }'
1919
# > "eyJhbGciOiJIUzI1NiJ9.YXNk.QNa-p8QpuHcVUDMN_Ih4x4vidWp31365GM4zrSr3t0s"
2020

2121
# Decrypt
22-
curl https://api.metacall.io/viferga/metacall/examples/v1/call/decrypt -X POST --data '{ "token": "eyJhbGciOiJIUzI1NiJ9.YXNk.QNa-p8QpuHcVUDMN_Ih4x4vidWp31365GM4zrSr3t0s" }'
22+
curl https://api.metacall.io/viferga/metacall-examples/v1/call/decrypt -X POST --data '{ "token": "eyJhbGciOiJIUzI1NiJ9.YXNk.QNa-p8QpuHcVUDMN_Ih4x4vidWp31365GM4zrSr3t0s" }'
2323
# > "asd"
2424
```

auth-middleware/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ This project implements an example middleware for functions. This can be extende
55
For testing it with curl:
66
``` bash
77
# Sign In
8-
curl https://api.metacall.io/viferga/metacall/examples/v1/call/signin -X POST --data '{"user":"viferga", "password":"123"}'
8+
curl https://api.metacall.io/viferga/metacall-examples/v1/call/signin -X POST --data '{"user":"viferga", "password":"123"}'
99
# > "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoidmlmZXJnYSIsInBhc3N3b3JkIjoiMTIzIiwiaWF0IjoxNTUwNzg5NDI1fQ.MJIZ96PwjIZzSdWsBbxG4_88ITY-iZmtEd8CSgcYi8g"
1010

1111
# Reverse (Middleware)
12-
curl https://api.metacall.io/viferga/metacall/examples/v1/call/reverse -X POST --data '{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoidmlmZXJnYSIsInBhc3N3b3JkIjoiMTIzIiwiaWF0IjoxNTUwNzg5NDI1fQ.MJIZ96PwjIZzSdWsBbxG4_88ITY-iZmtEd8CSgcYi8g", "args": { "str": "abcdefg" } }'
12+
curl https://api.metacall.io/viferga/metacall-examples/v1/call/reverse -X POST --data '{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoidmlmZXJnYSIsInBhc3N3b3JkIjoiMTIzIiwiaWF0IjoxNTUwNzg5NDI1fQ.MJIZ96PwjIZzSdWsBbxG4_88ITY-iZmtEd8CSgcYi8g", "args": { "str": "abcdefg" } }'
1313
# > "gfedcba"
1414

1515

1616
# Sum (Middleware)
17-
curl https://api.metacall.io/viferga/metacall/examples/v1/call/sum -X POST --data '{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoidmlmZXJnYSIsInBhc3N3b3JkIjoiMTIzIiwiaWF0IjoxNTUwNzg5NDI1fQ.MJIZ96PwjIZzSdWsBbxG4_88ITY-iZmtEd8CSgcYi8g", "args": { "a": 3, "b": 4 } }'
17+
curl https://api.metacall.io/viferga/metacall-examples/v1/call/sum -X POST --data '{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoidmlmZXJnYSIsInBhc3N3b3JkIjoiMTIzIiwiaWF0IjoxNTUwNzg5NDI1fQ.MJIZ96PwjIZzSdWsBbxG4_88ITY-iZmtEd8CSgcYi8g", "args": { "a": 3, "b": 4 } }'
1818
# > 7.0
1919
```

time-app-web/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Time Web App is a simple Python back-end with two functions:
55
- **`time()`**: Returns the current time
66

77
To test the project enter this url in your browser:
8-
- https://api.metacall.io/viferga/metacall/examples/v1/call/index
8+
- https://api.metacall.io/viferga/metacall-examples/v1/call/index
99
- Where:
1010
- **`viferga`** is your current user name,
11-
- **`metacall/examples`** is the name of this deployment and
11+
- **`metacall-examples`** is the name of this deployment and
1212
- **`v1`** is the version of the deployment.

0 commit comments

Comments
 (0)