跳转到主要内容

OpenAPI Scrubber

项目描述

API Scrubber

一个OpenAPI清理器,根据目标受众处理和删除某些信息。例如,给定如下

paths:
  /hello:
    get:
      description: Returns a hello world string.
  /admin:
    x-only: admin
    get:
      description: Get the admin settings

然后运行apiscrub input.yaml -将得到

paths:
  /hello:
    get:
      description: Returns a hello world string.

而运行apiscrub --keep=admin input.yaml -将得到

paths:
  /hello:
    get:
      description: Returns a hello world string.
  /admin:
    get:
      description: Get the admin settings

注意,两种情况下都会移除x-only元数据扩展标签。

安装

通过Python安装

$ pip install apiscrub

许可证

版权© 2018 Daniel G. Taylor

http://dgt.mit-license.org/

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

apiscrub-1.2.0.tar.gz (3.4 kB 查看哈希)

上传时间:

构建分布

apiscrub-1.2.0-py3.7.egg (6.1 kB 查看哈希)

上传时间:

由以下提供支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面