Python 3.x 使用不同的名称和架构将两个端点与Eve合并

Python 3.x 使用不同的名称和架构将两个端点与Eve合并,python-3.x,eve,Python 3.x,Eve,这是my settings.py的简化版本: accounts_schema = { 'username': { }, 'password': { } } accounts = { 'schema': accounts_schema, } 通过对/accounts端点的POST请求创建用户后,可以通过访问/accounts/来检索用户信息 我想知道是否有可能“合并”使用不同模式的两个端点 POST /update_accounts/<id_of_

这是my settings.py的简化版本:

accounts_schema = {
    'username': {
    },
    'password': {
    }
}

accounts = {
    'schema': accounts_schema,
}
通过对
/accounts
端点的POST请求创建用户后,可以通过访问
/accounts/
来检索用户信息
我想知道是否有可能“合并”使用不同模式的两个端点

POST /update_accounts/<id_of_user>
从:

多个API端点可以针对同一数据库集合。例如,您可以将管理员和/用户都设置为从数据库上的同一个人集合进行读写

因此,您可以让
update_帐户
帐户
都以相同的数据源为目标,并且每个帐户都有自己的用户权限/允许的方法,等等

/accounts/<id_of_user>
update_accounts_schema = {
    'token': {
    },
    'validity': {
    }
}