Current regular expression: /wp/v2/templates/(?P<parent>([^\/:<>\*\?"\|]+(?:\/[^\/:<>\*\?"\|]+)?)[\/\w%-]+)/revisions
Matches "my_theme_name/my_template_id" IDs as expected.
Matches "my_template_id" IDs. This is NOT expected.
Fixed regular expression: /wp/v2/templates/(?P<parent>([^\/:<>\*\?"\|]+\/\/?[^\/:<>\*\?"\|]+)[\/\w%-]+)/revisions
Matches "my_theme_name/my_template_id" IDs as expected.
Doesn't match "my_template_id" IDs as expected.