forked from microsoft/dev-proxy
-
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.
Updates version to v0.21.0 (microsoft#868)
- Loading branch information
1 parent
e49bb4b
commit 1e0895a
Showing
20 changed files
with
534 additions
and
16 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
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
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
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,135 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "CRUD API plugin API definition", | ||
"description": "API definition for use with the CRUD API Dev Proxy plugin", | ||
"type": "object", | ||
"properties": { | ||
"$schema": { | ||
"type": "string" | ||
}, | ||
"baseUrl": { | ||
"type": "string" | ||
}, | ||
"dataFile": { | ||
"type": "string" | ||
}, | ||
"actions": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"action": { | ||
"type": "string", | ||
"enum": [ | ||
"create", | ||
"getAll", | ||
"getOne", | ||
"getMany", | ||
"merge", | ||
"update", | ||
"delete" | ||
] | ||
}, | ||
"url": { | ||
"type": "string" | ||
}, | ||
"query": { | ||
"type": "string" | ||
}, | ||
"method": { | ||
"type": "string", | ||
"enum": [ | ||
"GET", | ||
"POST", | ||
"PUT", | ||
"PATCH", | ||
"DELETE" | ||
] | ||
}, | ||
"auth": { | ||
"type": "string", | ||
"enum": [ | ||
"none", | ||
"entra" | ||
] | ||
}, | ||
"entraAuthConfig": { | ||
"type": "object", | ||
"properties": { | ||
"audience": { | ||
"type": "string" | ||
}, | ||
"issuer": { | ||
"type": "string" | ||
}, | ||
"scopes": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"roles": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"validateLifetime": { | ||
"type": "boolean" | ||
}, | ||
"validateSigningKey": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"action" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"auth": { | ||
"type": "string", | ||
"enum": [ | ||
"none", | ||
"entra" | ||
] | ||
}, | ||
"entraAuthConfig": { | ||
"type": "object", | ||
"properties": { | ||
"audience": { | ||
"type": "string" | ||
}, | ||
"issuer": { | ||
"type": "string" | ||
}, | ||
"scopes": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"roles": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"validateLifetime": { | ||
"type": "boolean" | ||
}, | ||
"validateSigningKey": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"baseUrl", | ||
"dataFile", | ||
"actions" | ||
], | ||
"additionalProperties": false | ||
} |
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,91 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Dev Proxy GenericRandomErrorPlugin responses", | ||
"description": "Error responses for the Dev Proxy GenericRandomErrorPlugin", | ||
"type": "object", | ||
"properties": { | ||
"$schema": { | ||
"type": "string" | ||
}, | ||
"errors": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"request": { | ||
"type": "object", | ||
"properties": { | ||
"url": { | ||
"type": "string" | ||
}, | ||
"method": { | ||
"type": "string", | ||
"enum": [ | ||
"GET", | ||
"POST", | ||
"PUT", | ||
"PATCH", | ||
"DELETE", | ||
"HEAD", | ||
"OPTIONS", | ||
"CONNECT", | ||
"TRACE" | ||
] | ||
}, | ||
"bodyFragment": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"url" | ||
] | ||
}, | ||
"responses": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"body": { | ||
"type": [ | ||
"object", | ||
"array", | ||
"string" | ||
] | ||
}, | ||
"statusCode": { | ||
"type": "integer" | ||
}, | ||
"headers": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"value" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"request", | ||
"responses" | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"errors" | ||
], | ||
"additionalProperties": false | ||
} |
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,62 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Dev Proxy MockRequestPlugin mocks", | ||
"description": "Mock request for the Dev Proxy MockRequestPlugin", | ||
"type": "object", | ||
"properties": { | ||
"$schema": { | ||
"type": "string" | ||
}, | ||
"request": { | ||
"type": "object", | ||
"properties": { | ||
"url": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"method": { | ||
"type": "string", | ||
"enum": [ | ||
"GET", | ||
"POST", | ||
"PUT", | ||
"PATCH", | ||
"DELETE", | ||
"HEAD", | ||
"OPTIONS", | ||
"CONNECT", | ||
"TRACE" | ||
] | ||
}, | ||
"body": { | ||
"type": "object" | ||
}, | ||
"headers": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"value" | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"url" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"request" | ||
], | ||
"additionalProperties": false | ||
} |
Oops, something went wrong.