Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Loopback 4 中是否有一种方法可以使用@get()装饰器(或任何其他装饰器),传递路径但不为此路由生成开放 api 规范? 通过传递一个特殊的参数/使用@operation或任何东西? 谢谢你。
@get()
@operation
'x-visibility': 'undocumented'操作装饰器@get,等有一个未记录的规范选项@post,可能适合您的需求。这是一个简化的示例:
'x-visibility': 'undocumented'
@get
@post
@get('/test', { responses: {}, 'x-visibility': 'undocumented', }) async test() { // business logic }
以下是一些使用它的参考资料: