Why the rest api is not working?

Hi, I am trying xwiki rest api with postman, but why below endpoint not working?

working one:

http://172.25.161.211:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/attachments?media=json

but querying attachments of a page inside nested space not works, why ? I am sure that page has a attachment.

http://172.25.161.211:8080/xwiki/rest/wikis/xwiki/spaces/Main.11-%E5%A4%96%E9%83%A8%E5%88%B6%E5%BA%A6/pages/WebHome/attachments?media=json

image

It looks like you did not used the right URLs for nested spaces, you need to use:
/wikis/{wikiName}/spaces/{spaceName}[/spaces/{nestedSpaceName}]* so basically you build the URL with all nested spaces under /spaces/{spaceName} added one after the other.

thanks, you are right.