forked from bump-sh/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bump-sh#553 from bump-sh/overlay-testing
Add a new `overlay` command to be able to apply OpenAPI overlays on given API document
- Loading branch information
Showing
16 changed files
with
847 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
overlay: 1.0.0 | ||
info: | ||
title: Overlay to customise API for Protect Earth | ||
version: 0.0.1 | ||
actions: | ||
- target: '$.info.description' | ||
description: Provide a better introduction for our end users than this techno babble. | ||
update: | | ||
Protect Earth's Tree Tracker API will let you see what we've been planting and restoring all | ||
around the UK, and help support our work by directly funding the trees we plant or the sites | ||
we restore. | ||
To get involved [contact us and ask for an access token](https://protect.earth/contact) then | ||
[check out the API documentation](https://protect.earth/api). | ||
- target: '$.info' | ||
description: Let's have the public contact general support instead of whoever happened to release this API. | ||
update: | ||
contact: | ||
name: Protect Earth Support | ||
url: https://protect.earth/contact | ||
email: [email protected] | ||
|
||
- target: '$.servers.*' | ||
description: Remove all other servers so we can add our own. | ||
remove: true | ||
|
||
- target: '$..[?(@["x-beta"]==true)]' | ||
description: Remove all beta operations | ||
remove: true | ||
|
||
- target: '$.servers' | ||
description: Pop our server into the empty server array. | ||
update: | ||
- description: Production | ||
url: https://api.protect.earth/ |
Oops, something went wrong.