hi, i'm following the tutorial by making the notes...
# help
j
hi, i'm following the tutorial by making the notes app. I'm already at the create a note page (https://serverless-stack.com/chapters/add-an-api-to-create-a-note.html). When I run this command:
Copy code
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"content":"Hello World","attachment":"hello.jpg"}' \
<https://ps699rk4di.execute-api.ap-southeast-1.amazonaws.com>
the response I get is
{"message":"Not Found"}%
I checked the cloudwatch for logs but there are no logs yet so I think it's not calling the API yet. Any idea what's happening here? Or how do I check what's happening in the background? Thank you!
m
do you have
sst start
running?
j
hi @manitej, yes it's running on another window.
s
Hey @Jeff Cordova, your API request should be hitting the url that ends with
/notes
Copy code
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"content":"Hello World","attachment":"hello.jpg"}' \
<https://ps699rk4di.execute-api.ap-southeast-1.amazonaws.com/notes>
j
Thank you @Seth Geoghegan! confirming that this worked now. Thanks for your answer and time! 🙂
s
Awesome!