Skip to content

Commit

Permalink
chore: Improve formatting of message
Browse files Browse the repository at this point in the history
  • Loading branch information
ramedina86 committed Dec 9, 2024
1 parent c53dea9 commit 7f11062
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ui/src/builder/settings/BuilderSettingsAPICode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
></BuilderEmbeddedCodeEditor>
</div>
Using the job ID and token obtained in the previous call, check
the status of the job.
the status of the job. You can use the code below, after
replacing JOB_ID and JOB_TOKEN for the right values.
<div class="codeContainer">
<BuilderEmbeddedCodeEditor
v-model="codePost"
Expand Down Expand Up @@ -101,8 +102,8 @@ curl --location --request POST '${baseURL}api/job/workflow/${workflowKey.value}'
"my_var": 1
}'`.trim();
codePost.value = `
curl --location '${baseURL}api/job/[JOB_ID]' \\
--header 'Authorization: Bearer [JOB_TOKEN]'`.trim();
curl --location '${baseURL}api/job/JOB_ID' \\
--header 'Authorization: Bearer JOB_TOKEN'`.trim();
}
</script>

Expand Down

0 comments on commit 7f11062

Please sign in to comment.