On <https://serverless-stack.com/chapters/call-the...
# help
p
On https://serverless-stack.com/chapters/call-the-list-api.html there's a line
return API.get("notes", "/notes")
. What's the first argument? "notes"? What does it match? I'm getting
API notes does not exist
in my app (which is a bit different).
d
in my case in my client i have something like
Copy code
Amplify.configure({
  API: {
    endpoints: [
      {
        name: "customers",
        endpoint: config.apiGateway.URL,
        region: config.apiGateway.REGION,
      },
    ],
  },
that first arg, that
API.get()
takes i’ve always understood to be the API name that amplify is reading.
p
Ah, thank you.