mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Adding tutorial prerequisites and correcting routes (#423)
* Adding tutorial prerequisites and correcting routes * Correcting Quickstart link in README.md * Minor edit to trigger pull request
This commit is contained in:
committed by
Reed Allman
parent
250bc645f9
commit
425bcc0954
@@ -22,15 +22,15 @@ fn deploy --app myapp
|
||||
### Now call your function:
|
||||
|
||||
```sh
|
||||
curl http://localhost:8080/r/myapp/hello-ruby
|
||||
curl http://localhost:8080/r/myapp/ruby
|
||||
```
|
||||
|
||||
Or call from a browser: [http://localhost:8080/r/myapp/hello-ruby](http://localhost:8080/r/myapp/hello-ruby)
|
||||
Or call from a browser: [http://localhost:8080/r/myapp/ruby](http://localhost:8080/r/myapp/ruby)
|
||||
|
||||
And now with the JSON input:
|
||||
|
||||
```sh
|
||||
curl -H "Content-Type: application/json" -X POST -d @sample.payload.json http://localhost:8080/r/myapp/hello-ruby
|
||||
curl -H "Content-Type: application/json" -X POST -d @sample.payload.json http://localhost:8080/r/myapp/ruby
|
||||
```
|
||||
|
||||
That's it! Our `fn deploy` packaged our function and sent it to the Fn server. Try editing `func.rb`
|
||||
|
||||
Reference in New Issue
Block a user