I am trying to execute the dynamic code via the API but it looks like when i make the call it still try to look into the predefined problem repository. am i missing something or this is by design ?
curl 'http://localhost:8080/api/execute' \
-H 'Accept: */*' \
-H 'Accept-Language: en-US,en;q=0.9' \
-H 'Connection: keep-alive' \
-H 'Content-type: application/json; charset=UTF-8' \
-H 'DNT: 1' \
-H 'Origin: http://localhost:8080' \
-H 'Referer: http://localhost:8080/problem/1' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36' \
-H 'sec-ch-ua: "Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?1' \
-H 'sec-ch-ua-platform: "Android"' \
--data-raw '{"sourceCode":"// Java code here\npublic class main {\n public static void main(String[] args) {\n System.out.println(\"YES\");\n }\n}","language":"JAVA", "testCases": { "test1" : {"input": "RAJESH", "expectedOutput": "RAJESH"}}}, "timeLimit": 15, "memoryLimit": 500'
{"timestamp":"2024-04-26T01:47:49.147+00:00","status":404,"error":"Not Found","message":"A problem with id 0 does not exist","path":"/api/execute","errorCode":"NOT_FOUND","errorType":"WARNING","isRetryableError":false,"retryIn":-1}%
{"timestamp":"2024-04-26T01:47:49.147+00:00","status":404,"error":"Not Found","message":"A problem with id 0 does not exist","path":"/api/execute","errorCode":"NOT_FOUND","errorType":"WARNING","isRetryableError":false,"retryIn":-1}%