Trying to make quick sense of the endpoints array ...
# help
m
Trying to make quick sense of the endpoints array in the API object here. The guide states “name” is the name of our API. I guess the array being named “endpoints” vs that explanation is what has me a little crossed. My app has three endpoints on the url. /users, /accounts/, and /transactions Would one entry cover that entire section of endpoints, since they are in the same API, or do I need to explicitly list each endpoint in it’s own object within the array?
Example of the other way I was thinking this needs to be set up. endpoint and region are the same on all three objects here
f
Hey @mathewgries, just to clarify, are /users, /accounts/, and /transactions 3 routes in the same Api project?
If you can share how you are defining the Api, that’d help.
m
Yes, they are three routes in the same API
Guessing that the one item in the array is gonna work. I can build it out and run tests on it
f
Yup, you should need just 1 item in the array.
Give it a try and let me know if it works.
m
Yeah, looks like that works. The endpoints naming was confusing, but it’s one item in the array per API