Download tools/resttestgen/src/test/resources/specifications/itemsRef.json from minhhungg/AutoRestTest-TrackA: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/datasets/minhhungg/AutoRestTest-TrackA/resolve/main/tools/resttestgen/src/test/resources/specifications/itemsRef.json
- Command line
-
hf download hf://datasets/minhhungg/AutoRestTest-TrackA/tools/resttestgen/src/test/resources/specifications/itemsRef.json
-
curl -L -o itemsRef.json https://huggingface.co/datasets/minhhungg/AutoRestTest-TrackA/resolve/main/tools/resttestgen/src/test/resources/specifications/itemsRef.json
1.43 kB
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "description": "test specification", | |
| "title": "test", | |
| "version": "0.4" | |
| }, | |
| "servers": [ | |
| { | |
| "url": "http://localhost" | |
| } | |
| ], | |
| "paths": { | |
| "/{id}": { | |
| "get": { | |
| "operationId": "getRoot", | |
| "parameters": [ | |
| { | |
| "name": "id", | |
| "in": "path", | |
| "required": true, | |
| "schema": { | |
| "$ref": "#/components/schemas/CustomString" | |
| } | |
| }, | |
| { | |
| "name": "name", | |
| "in": "query", | |
| "schema": { | |
| "$ref": "#/components/schemas/CustomString" | |
| } | |
| }, | |
| { | |
| "name": "hParam", | |
| "in": "header", | |
| "schema": { | |
| "$ref": "#/components/schemas/CustomString" | |
| } | |
| } | |
| ], | |
| "responses": { | |
| "200": { | |
| "description": "ok" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "components": { | |
| "schemas": { | |
| "CustomString": { | |
| "type": "string" | |
| }, | |
| "MyBaseSchema": { | |
| "properties": { | |
| "name": { | |
| "type": "string" | |
| } | |
| } | |
| }, | |
| "MyRefSchema": { | |
| "properties": { | |
| "baseSchemas": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/components/schemas/MyBaseSchema" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } |