'How does the python library aiohttp use regular routing?

I have trouble finding a pattern that matches className=id pairs one or more times. For now, I can capture just a single pair className=id using variable-resources mechanism provided by the python package aiohttp.

I have tried {{className}={id}:.+}, but it just doesn't work.

import 
app.router.add_put("/{className}={id}", my_handler) # just capture a single className=id pair and it works
app.router.add_put("/{{className}={id}:.+}", my_handler) # wana to capture one or more times className=id pair but it failed


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source