-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
diff-add-exclude-elements-options (#454)
- Loading branch information
Reuven Harrison
authored
Dec 7, 2023
1 parent
ac02167
commit 88b9075
Showing
7 changed files
with
46 additions
and
11 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 @@ | ||
# oasdiff-service | ||
|
||
### Creating a tenant | ||
Create a tenant and get a tenant ID: | ||
``` | ||
curl -d '{"tenant": "my-company", "email": "[email protected]"}' https://register.oasdiff.com/tenants | ||
``` | ||
You will get a response with your tenant ID: | ||
``` | ||
{"id": "2ahh9d6a-2221-41d7-bbc5-a950958345"} | ||
``` | ||
### Run diff | ||
``` | ||
curl -X POST \ | ||
-F base=@data/openapi-test1.yaml \ | ||
-F revision=@data/openapi-test3.yaml \ | ||
http://api.oasdiff.com/tenants/{tenant-id}/diff | ||
``` | ||
|
||
### Run breaking-changes | ||
``` | ||
curl -X POST \ | ||
-F base=@data/openapi-test1.yaml \ | ||
-F revision=@data/openapi-test3.yaml \ | ||
https://api.oasdiff.com/tenants/{tenant-id}/breaking-changes | ||
``` | ||
|
||
### Run changelog | ||
``` | ||
curl -X POST \ | ||
-F base=@data/openapi-test1.yaml \ | ||
-F revision=@data/openapi-test3.yaml \ | ||
https://api.oasdiff.com/tenants/{tenant-id}/changelog | ||
``` | ||
### Errors | ||
oasdiff-service uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate a failure with additional information provided (e.g., invalid OpenAPI spec format, a required parameter was missing, etc.). Codes in the 5xx range indicate an error with oasdiff-service servers (these are rare) |
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
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