File tree Expand file tree Collapse file tree
ContentProcessorAPI/samples/schemas
ContentProcessorWeb/public Expand file tree Collapse file tree Original file line number Diff line number Diff 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 "
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments