Closed
Description
I'm trying to write swagger docs for APIs like dropbox where the number of path segments isn't known ahead of time. For example, the path template will look something like:
/api/metadata/{filePath}
And the following urls should all match this path:
/api/metadata/file1.txt
/api/metadata/dir1/file2.txt
/api/metadata/dir1/dir2/file3.txt
If we were using RFC 6570, I'd represent this as:
/api/metadata/{/filePath*}
but the swagger v2 spec doesn't say if this syntax is acceptable or not.
If it is acceptable/correct, could you please let me know in this item? If it's not, what is the expected way to model APIs like this with runtime variable URI paths?
Metadata
Metadata
Assignees
Labels
No labels