@@ -24,7 +24,6 @@ export function CurlImportModal(props: CurlImportModalProps) {
2424 try {
2525 // Parse the cURL command using the correct import
2626 const parsedData = parseCurl ( curlCommand ) ;
27- console . log ( "CURL JSON" , parsedData )
2827
2928
3029
@@ -72,15 +71,23 @@ export function CurlImportModal(props: CurlImportModalProps) {
7271 Paste cURL Command Here
7372 </ div >
7473 < div style = { { marginBottom : 12 , color : "#666" , fontSize : "12px" } } >
75- Hint: Try typing in the following curl command and then click on the 'Import' button:
76- curl -X GET https://mock-api.appsmith.com/users
74+ < div style = { { marginBottom : 4 } } >
75+ < strong > Examples:</ strong >
76+ </ div >
77+ < div style = { { marginBottom : 2 } } >
78+ GET: < code > curl -X GET https://jsonplaceholder.typicode.com/posts/1</ code >
79+ </ div >
80+ < div style = { { marginBottom : 2 } } >
81+ POST: < code > curl -X POST https://jsonplaceholder.typicode.com/posts -H "Content-Type: application/json" -d '{"title":"foo","body":"bar","userId":1}'</ code >
82+ </ div >
83+ < div >
84+ Users: < code > curl -X GET https://jsonplaceholder.typicode.com/users</ code >
85+ </ div >
7786 </ div >
7887 < TextArea
7988 value = { curlCommand }
8089 onChange = { ( e ) => setCurlCommand ( e . target . value ) }
81- placeholder = "curl -X POST \
82- -H 'Content-Type: application/json' \
83- 'https://generativelanguage.googleapis.com/v1beta/models/{MODEL_ID}:{GENERATE_CONTENT_API}?key={GEMINI_API_KEY}' -d '@request.json'"
90+ placeholder = "curl -X GET https://jsonplaceholder.typicode.com/posts/1"
8491 rows = { 8 }
8592 style = { { fontFamily : "monospace" } }
8693 />
0 commit comments