Hey everyone
I am trying to switch from programatic to declarative node building style and am trying to keep everything as modular as possible
Quick question for those with more experienced than me
Can you stack url
paths? Meaning can you set url: '/projects'
in a project resource field then add, for example, a url: '=/{{$parameter.projectId}}/invitations'
under the an operation to make the path: https://baseurl/projects/projectid/invitations
?
I assumed this was possible so I just want to check to make sure i’m not missing something.
I tried it here like this in resource
resources = [
...
{
name: 'Project Collaborator',
value: 'projectCollaborator',
routing: {
request: {
url: '/projects/'
}
}
},
...
]
Then in operation like this
fields = [
{
displayName: 'Project ID',
name: 'projectId',
type: 'string',
required: true,
default: '',
routing: {
request: {
url: '=/{{$parameter.projectId}}/invitations'
},
},
...
},
]
As shown I get a 404 error.
If i remove the url
from the resource and add the full path in the operation it works.
Is this the intended way or am i doing something wrong?
Also, is there an easy way to debug (see) your request? I can’t figure out how to actually see it so I’m just relying on response codes
Thanks in advance
n8n version: 1.27.2