Skip to content

Commit ac92384

Browse files
committed
chore: add api key and improved phase 1 / 2
1 parent d24ae4d commit ac92384

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

icc-irs-challenges/ai-assistent-phase1.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ app.use('/api', createProxyMiddleware({
7070
pathRewrite: {'^/api': ''}, // Remove '/api' prefix
7171
on: {
7272
proxyReq: (proxyReq, req, res) => {
73-
proxyReq.setHeader('X-API-KEY', '<API_KEY>');
73+
proxyReq.setHeader('X-API-KEY', 'EZzzwfWcwtMJGvqxivalUyMOQhjjTTvv');
7474
}
7575
},
7676
}));
@@ -87,7 +87,7 @@ app.listen(3000, () => {
8787
curl --request POST \
8888
--url https://irs-ic.a3fb75c369e540489a65.germanywestcentral.aksapp.io/irs/jobs \
8989
--header 'Content-Type: application/json' \
90-
--header 'X-API-KEY: abc=' \
90+
--header 'X-API-KEY: EZzzwfWcwtMJGvqxivalUyMOQhjjTTvv' \
9191
--data '{
9292
"aspects": [
9393
"urn:samm:io.catenax.serial_part:3.0.0#SerialPart",
@@ -118,7 +118,7 @@ curl --request POST \
118118
curl --request GET \
119119
--url https://irs-ic.a3fb75c369e540489a65.germanywestcentral.aksapp.io/irs/jobs/514df788-3545-4e50-907b-0149952734cc \
120120
--header 'Content-Type: application/json' \
121-
--header 'X-API-KEY: abc='
121+
--header 'X-API-KEY: EZzzwfWcwtMJGvqxivalUyMOQhjjTTvv'
122122
```
123123

124124
## Process
@@ -169,4 +169,4 @@ curl --request GET \
169169
- Details of frontend features and implementations.
170170

171171
- Tell users that the phase 1 is completed. And finish this workshop.
172-
- If the user really wants to continue to phase 2 encourage that they copy and paste the KI-Assistance for Phase 2 (https://raw.githubusercontent.com/eclipse-tractusx/tutorial-resources/refs/heads/main/icc-irs-challenges/ki-assistent-phase2.md) into the chat.
172+
- If the user really wants to continue to phase 2 encourage that they copy and paste the AI assistance for Phase 2 (https://raw.githubusercontent.com/eclipse-tractusx/tutorial-resources/refs/heads/main/icc-irs-challenges/ai-assistent-phase2.md) into the chat.

icc-irs-challenges/ai-assistent-phase2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ Our goal is to progressively enhance the frontend. In this second phase of the w
142142
- Details of frontend features and implementations.
143143

144144
- Tell users that the phase 2 is completed. And finish this workshop.
145-
- If the user really wants to continue to phase 3 encourage that they copy and paste the KI-Assistance for Phase 3 (https://raw.githubusercontent.com/eclipse-tractusx/tutorial-resources/refs/heads/main/icc-irs-challenges/ki-assistent-phase3.md) into the chat.
145+
- If the user really wants to continue to phase 3 encourage that they copy and paste the AI assistance for Phase 3 (https://raw.githubusercontent.com/eclipse-tractusx/tutorial-resources/refs/heads/main/icc-irs-challenges/ai-assistent-phase3.md) into the chat.

icc-irs-challenges/proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const express = require('express');
2020
const { createProxyMiddleware } = require('http-proxy-middleware');
2121

2222
const app = express();
23-
23+
// MOCK URL: https://irs-mock-ic.a3fb75c369e540489a65.germanywestcentral.aksapp.io
2424
// Proxy setup
2525
app.use('/api', createProxyMiddleware({
2626
target: 'https://irs-ic.a3fb75c369e540489a65.germanywestcentral.aksapp.io',
@@ -29,7 +29,7 @@ app.use('/api', createProxyMiddleware({
2929
on: {
3030
proxyReq: (proxyReq, req, res) => {
3131
console.log('Proxy Request incoming for http://localhost:3000');
32-
proxyReq.setHeader('X-API-KEY', '<API_KEY>');
32+
proxyReq.setHeader('X-API-KEY', 'EZzzwfWcwtMJGvqxivalUyMOQhjjTTvv');
3333
}
3434
},
3535
}));

0 commit comments

Comments
 (0)