Skip to content

Commit 60966ab

Browse files
committed
Update readme for create test
1 parent 55a424b commit 60966ab

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

apps/execution-service/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,21 @@ The following json format will be returned:
106106
]
107107
```
108108

109+
`POST /tests`
110+
111+
To create a new test case, run the following command:
112+
113+
```bash
114+
curl -X POST http://localhost:8083/tests \
115+
-H "Content-Type: application/json" \
116+
-d '{
117+
"questionDocRefId": "sampleDocRefId123",
118+
"questionTitle": "Sample Question Title",
119+
"visibleTestCases": "2\nhello\nolleh\nHannah\nhannaH",
120+
"hiddenTestCases": "2\nHannah\nhannaH\nabcdefg\ngfedcba"
121+
}'
122+
```
123+
109124
`POST /tests/{questionDocRefId}/execute`
110125

111126
To execute test cases via a question ID without custom test cases, run the following command, with custom code and language:

0 commit comments

Comments
 (0)