I'm not familiar with Arweave so I can't answer about that. For IPFS there exists the possibility to upload a directory rather than a file, so when you request .../1 you get the file called "1" inside the directory, and this can be used for NFT ids. See:
If there is nothing like this for Arweave then this pattern is not possible and you would have to use ERC721URIStorage to set a different tokenUri for each id.