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.
- Loading branch information
1 parent
1542aac
commit 45ca31c
Showing
16 changed files
with
493 additions
and
10 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
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,51 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Dev Proxy GenericRandomErrorPlugin responses", | ||
"description": "Mocks for the Dev Proxy GenericRandomErrorPlugin", | ||
"type": "object", | ||
"properties": { | ||
"$schema": { | ||
"type":"string" | ||
}, | ||
"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": [ | ||
"responses" | ||
], | ||
"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.