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.
我尝试将此招摇http://petstore.swagger.io/#/与 API Rest 客户端(如 Insomnia 或 Postman)一起使用。我必须设置“API 密钥”才能使用 API 但在哪里?
在 Insomnia 中,我可以设置此授权设置,但有哪些用途?
API 密钥在 Petstore 演示中是可选的,您可以在没有 API 密钥的情况下调用大多数(全部?)端点。
如果您想使用 API 密钥,请将以下标头添加到您的请求中:
api_key: special-key
但据我所知,无论有没有 API 密钥,响应都是一样的。