Skip to content

Commit 2251a6f

Browse files
fix: pushed latest changes
1 parent 9e18ad1 commit 2251a6f

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/ContentProcessorAPI/samples/schemas/register_schema.ps1

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ foreach ($entry in $schemaEntries) {
6767
$multipartContent.Add($dataContent)
6868

6969
# Log request details for debugging
70-
# Write-Output "Uploading schema file: $schemaFile"
71-
# Write-Output "ClassName: $className, Description: $description"
72-
# Write-Output "API Endpoint: $ApiEndpointUrl"
70+
Write-Output "Uploading schema file: $schemaFile"
71+
Write-Output "ClassName: $className, Description: $description"
72+
Write-Output "API Endpoint: $ApiEndpointUrl"
7373

7474
# Invoke the API with the multipart content
7575
$httpClient = New-Object System.Net.Http.HttpClient
@@ -81,10 +81,8 @@ foreach ($entry in $schemaEntries) {
8181

8282
# Print the API response
8383
if ($responseMessage.IsSuccessStatusCode) {
84-
$responseJson = $responseContent | ConvertFrom-Json
85-
$id = $responseJson.Id
86-
$desc = $responseJson.Description
87-
Write-Output "$desc's Schema Id - $id"
84+
Write-Output "Uploaded '$schemaFile' with ClassName='$className' and Description='$description'."
85+
Write-Output "API Response: $responseContent"
8886
}
8987
else {
9088
Write-Error "Failed to upload '$schemaFile'. HTTP Status: $httpStatusCode"

src/ContentProcessorWeb/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
content="Web site created using create-react-app"
2020
/>
2121

22-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/favicon.ico" crossorigin="use-credentials"/>
22+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/favicon.ico" />
2323
<!--
2424
manifest.json provides metadata used when your web app is installed on a
2525
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
2626
-->
27-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
27+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" crossorigin="use-credentials"/>
2828
<!--
2929
Notice the use of %PUBLIC_URL% in the tags above.
3030
It will be replaced with the URL of the `public` folder during the build.

0 commit comments

Comments
 (0)