mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
readme mods
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
This example will show you how to test and deploy Go (Golang) code to Oracle Functions. It will also demonstrate passing data in through stdin.
|
This example will show you how to test and deploy Go (Golang) code to Oracle Functions. It will also demonstrate passing data in through stdin.
|
||||||
|
|
||||||
### First, run the following commands to create, run, and deploy your function:
|
### First, run the following commands:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Initialize your function creating a func.yaml file
|
# Initialize your function creating a func.yaml file
|
||||||
@@ -23,15 +23,16 @@ fn deploy myapp
|
|||||||
```sh
|
```sh
|
||||||
curl http://localhost:8080/r/myapp/hello
|
curl http://localhost:8080/r/myapp/hello
|
||||||
```
|
```
|
||||||
### Or call from a browser: [http://localhost:8080/r/myapp/hello](http://localhost:8080/r/myapp/hello)
|
|
||||||
|
|
||||||
### And now with the JSON input:
|
Or call from a browser: [http://localhost:8080/r/myapp/hello](http://localhost:8080/r/myapp/hello)
|
||||||
|
|
||||||
|
And now with the JSON input:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -H "Content-Type: application/json" -X POST -d @hello.payload.json http://localhost:8080/r/myapp/hello
|
curl -H "Content-Type: application/json" -X POST -d @hello.payload.json http://localhost:8080/r/myapp/hello
|
||||||
```
|
```
|
||||||
|
|
||||||
### That's it!
|
That's it!
|
||||||
|
|
||||||
# In Review
|
# In Review
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user