Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API documentation, testdata and registry client library #227

Merged
merged 36 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
036de24
chore(testing): update ESS investigation request
ds-jhartmann Oct 17, 2023
71f5e27
chore(testing): update ESS investigation request
ds-jhartmann Oct 17, 2023
cfd4403
chore(dependencies): Update irs-registry-client to 1.3.2-SNAPSHOT
ds-jhartmann Oct 17, 2023
818ae25
Merge pull request #595 from catenax-ng/chore/update-irs-registry-cli…
ds-jhartmann Oct 17, 2023
f9510bc
chore(dependencies): Update DEPENDENCIES
ds-jhartmann Oct 17, 2023
5cf92a8
Merge pull request #596 from catenax-ng/chore/update-DEPENDENCIES
ds-jhartmann Oct 17, 2023
f1796db
Merge pull request #588 from catenax-ng/chore/update-insomnia-collection
ds-jhartmann Oct 18, 2023
884529e
feat(dependencies):[TRI-1468] Use irs-registry-client version for irs…
ds-jhartmann Oct 18, 2023
4d6d1e4
feat(dependencies):[TRI-1468] Use irs-registry-client version for irs…
ds-jhartmann Oct 18, 2023
e95978d
feat(dependencies):[TRI-1468] Add maven release plugins to root pom
ds-jhartmann Oct 18, 2023
8b03a2c
feat(models):[TRI-1468] Add empty builder class to enable maven javad…
ds-jhartmann Oct 18, 2023
5ac1ede
feat(models):[TRI-1468] Add delombok plugin instead of creating empty…
ds-jhartmann Oct 18, 2023
3e295e4
feat(workflows):[TRI-1468] Update maven deploy workflow
ds-jhartmann Oct 18, 2023
bcdf9d1
feat(impl):[TRI-1716] 1.6.2 datasets
ds-ext-kmassalski Oct 18, 2023
8916e30
feat(registry-client):[TRI-1468] Update irs-registry-client to 1.3.0
ds-jhartmann Oct 18, 2023
bef11b2
feat(impl):[TRI-1716] update policies
ds-ext-kmassalski Oct 19, 2023
596b999
chore(testing): Update DIL requests
ds-jhartmann Oct 19, 2023
0f99135
Merge pull request #598 from catenax-ng/feature/TRI-1716-new-data-sets
ds-ext-kmassalski Oct 19, 2023
f07f1af
Merge pull request #600 from catenax-ng/chore/update-DIL-insomnia
ds-ext-kmassalski Oct 19, 2023
d154e13
feat(dependencies):[TRI-1468] Add maven flatten plugin to release pro…
ds-jhartmann Oct 19, 2023
e939e8f
feat(dependencies):[TRI-1468] Change flatten mode to ossrh
ds-jhartmann Oct 19, 2023
3be1adc
feat(dependencies):[TRI-1468] Override url and scm for registry clien…
ds-jhartmann Oct 19, 2023
0c27edd
feat(dependencies):[TRI-1468] Add developer information
ds-jhartmann Oct 19, 2023
f9bfa8b
feat(workflows):[TRI-1468] Add step to copy OSS files
ds-jhartmann Oct 23, 2023
a1185ea
feat:[TRI-1685]: added example values to open api yaml, fixed problem…
ds-psosnowski Oct 23, 2023
89a85e3
feat:[TRI-1685]: code clean up
ds-psosnowski Oct 23, 2023
2385905
feat:[TRI-1685]: corrected example values
ds-psosnowski Oct 23, 2023
38b9836
feat:[TRI-1685]: fixed url value in examples
ds-psosnowski Oct 23, 2023
626b0ee
Merge pull request #603 from catenax-ng/feature/TRI-1685-refactor-api…
ds-psosnowski Oct 24, 2023
e80e643
chore(dependencies): Update DEPENDENCIES
ds-psosnowski Oct 24, 2023
4c4953c
Merge pull request #605 from catenax-ng/chore/update-DEPENDENCIES
ds-ext-kmassalski Oct 24, 2023
d275c1c
TRI-1716: adjusted URN of aspects Batch, SLBAsSpecified and ProductDe…
ds-alexander-bulgakov Oct 24, 2023
5dd2fbf
Merge pull request #606 from catenax-ng/feature/TRI-1716_change-aspec…
ds-alexander-bulgakov Oct 24, 2023
773edc7
Merge pull request #597 from catenax-ng/feature/TRI-1468-enable-full-…
ds-jhartmann Oct 26, 2023
9ce2c5a
chore(dependencies): Update DEPENDENCIES
ds-jhartmann Oct 26, 2023
1f44f17
Merge pull request #610 from catenax-ng/chore/update-DEPENDENCIES
ds-jhartmann Oct 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/maven-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
run: mvn package -pl irs-testing,irs-models,irs-common,irs-edc-client,irs-registry-client --batch-mode

# Import GPG Key
- uses: ./.github/actions/import-gpg-key
name: "Import GPG Key"
Expand All @@ -77,16 +74,19 @@ jobs:
</servers>
</settings>" > $HOME/.m2/settings.xml

- name: Copy License information
run: |
mkdir -p irs-registry-client/src/main/resources/META-INF/
mkdir -p irs-edc-client/src/main/resources/META-INF/
mkdir -p irs-models/src/main/resources/META-INF/
mkdir -p irs-testing/src/main/resources/META-INF/
cp LICENSE NOTICE.md DEPENDENCIES SECURITY.md irs-registry-client/src/main/resources/META-INF/
cp LICENSE NOTICE.md DEPENDENCIES SECURITY.md irs-edc-client/src/main/resources/META-INF/
cp LICENSE NOTICE.md DEPENDENCIES SECURITY.md irs-models/src/main/resources/META-INF/
cp LICENSE NOTICE.md DEPENDENCIES SECURITY.md irs-testing/src/main/resources/META-INF/

# publish snapshots or releases
- name: Publish version
run: |-
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout -pl irs-registry-client)
REPOSITORY_URL="https://oss.sonatype.org/service/local/staging/deploy/maven2/"
if [[ $VERSION == *"-SNAPSHOT"* ]]; then
echo "Using snapshot repository"
REPOSITORY_URL="https://oss.sonatype.org/content/repositories/snapshots"
fi
echo "Publishing Version $VERSION to Sonatype Repository $REPOSITORY_URL"
mvn -s $HOME/.m2/settings.xml --batch-mode gpg:sign-and-deploy-file -Dgpg.passphrase="${{ secrets.ORG_GPG_PASSPHRASE }}" -Durl=$REPOSITORY_URL -DrepositoryId=ossrh -Dfile=irs-registry-client/target/irs-registry-client-$VERSION-jar-with-dependencies.jar -DgroupId=org.eclipse.tractusx.irs -DartifactId=irs-registry-client -Dversion=$VERSION -Dpackaging=jar
mvn -s $HOME/.m2/settings.xml --batch-mode gpg:sign-and-deploy-file -Dgpg.passphrase="${{ secrets.ORG_GPG_PASSPHRASE }}" -Durl=$REPOSITORY_URL -DrepositoryId=ossrh -Dfile=irs-registry-client/target/irs-registry-client-$VERSION-sources.jar -Dclassifier=sources -DgroupId=org.eclipse.tractusx.irs -DartifactId=irs-registry-client -Dversion=$VERSION -Dpackaging=jar
mvn -s $HOME/.m2/settings.xml --batch-mode gpg:sign-and-deploy-file -Dgpg.passphrase="${{ secrets.ORG_GPG_PASSPHRASE }}" -Durl=$REPOSITORY_URL -DrepositoryId=ossrh -Dfile=irs-registry-client/target/irs-registry-client-$VERSION-javadoc.jar -Dclassifier=javadoc -DgroupId=org.eclipse.tractusx.irs -DartifactId=irs-registry-client -Dversion=$VERSION -Dpackaging=jar
mvn clean deploy -s $HOME/.m2/settings.xml --batch-mode -Dgpg.passphrase="${{ secrets.ORG_GPG_PASSPHRASE }}" -Prelease -pl irs-testing,irs-models,irs-edc-client,irs-registry-client -Drevision=$VERSION
12 changes: 6 additions & 6 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ maven/mavencentral/net.java.dev.jna/jna/5.12.1, Apache-2.0 OR LGPL-2.1-or-later,
maven/mavencentral/net.javacrumbs.json-unit/json-unit-assertj/2.36.1, Apache-2.0, approved, clearlydefined
maven/mavencentral/net.javacrumbs.json-unit/json-unit-core/2.36.1, Apache-2.0, approved, clearlydefined
maven/mavencentral/net.javacrumbs.json-unit/json-unit-json-path/2.36.1, Apache-2.0, approved, clearlydefined
maven/mavencentral/net.jimblackler.jsonschemafriend/core/0.12.0, None, restricted, #10911
maven/mavencentral/net.jimblackler.jsonschemafriend/extra/0.12.0, None, restricted, #10910
maven/mavencentral/net.jimblackler.jsonschemafriend/core/0.12.0, Apache-2.0, approved, #10911
maven/mavencentral/net.jimblackler.jsonschemafriend/extra/0.12.0, Apache-2.0, approved, #10910
maven/mavencentral/net.jimblackler/jsonschemafriend/0.12.0, Apache-2.0, approved, #10912
maven/mavencentral/net.jodah/typetools/0.6.3, Apache-2.0, approved, clearlydefined
maven/mavencentral/net.minidev/accessors-smart/2.4.11, Apache-2.0, approved, #7515
Expand Down Expand Up @@ -300,11 +300,11 @@ maven/mavencentral/org.eclipse.jetty/jetty-webapp/11.0.16, EPL-2.0 OR Apache-2.0
maven/mavencentral/org.eclipse.jetty/jetty-xml/11.0.16, EPL-2.0 OR Apache-2.0, approved, rt.jetty
maven/mavencentral/org.eclipse.tractusx.irs/irs-api/0.0.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-common/0.0.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-edc-client/0.0.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-models/0.0.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-edc-client/1.3.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-models/1.3.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-policy-store/0.0.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-registry-client/1.3.1, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-testing/0.0.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-registry-client/1.3.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.eclipse.tractusx.irs/irs-testing/1.3.2-SNAPSHOT, Apache-2.0, approved, automotive.tractusx
maven/mavencentral/org.glassfish.hk2.external/aopalliance-repackaged/3.0.4, EPL-2.0 OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.glassfish
maven/mavencentral/org.glassfish.hk2/hk2-api/3.0.4, EPL-2.0 OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.glassfish
maven/mavencentral/org.glassfish.hk2/hk2-locator/3.0.4, EPL-2.0 OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.glassfish
Expand Down
44 changes: 44 additions & 0 deletions docs/src/api/irs-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,10 @@ components:
example: urn:uuid:6c311d29-5753-46d4-b32c-19b918ea93b0
id:
type: string
example: 882fc530-b69b-4707-95f6-5dbc5e9baaa8
idShort:
type: string
example: future concept x
specificAssetIds:
type: array
items:
Expand Down Expand Up @@ -1663,16 +1665,20 @@ components:
properties:
manufacturerId:
type: string
example: BPNL00000003AYRE
manufacturerName:
type: string
example: OEM A
Constraint:
type: object
additionalProperties: false
properties:
leftOperand:
type: string
example: string
operator:
type: string
example: eq
enum:
- eq
- neq
Expand All @@ -1691,6 +1697,7 @@ components:
type: array
items:
type: string
example: [string]
Constraints:
type: object
additionalProperties: false
Expand Down Expand Up @@ -1767,6 +1774,7 @@ components:
properties:
interface:
type: string
example: HTTP
protocolInformation:
$ref: '#/components/schemas/ProtocolInformation'
ErrorResponse:
Expand Down Expand Up @@ -1862,12 +1870,14 @@ components:
properties:
name:
type: string
example: engineserialid
semanticId:
$ref: '#/components/schemas/Reference'
subjectId:
$ref: '#/components/schemas/Reference'
value:
type: string
example: "12309481209312"
Job:
type: object
additionalProperties: false
Expand All @@ -1876,9 +1886,11 @@ components:
completedOn:
type: string
format: date-time
example: 2022-02-03T14:48:54.709Z
createdOn:
type: string
format: date-time
example: 2022-02-03T14:48:54.709Z
exception:
$ref: '#/components/schemas/JobErrorDetails'
globalAssetId:
Expand All @@ -1891,13 +1903,15 @@ components:
id:
type: string
format: uuid
example: e5347c88-a921-11ec-b909-0242ac120002
description: Id of the job.
maxLength: 36
minLength: 36
pattern: "/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i"
lastModifiedOn:
type: string
format: date-time
example: 2022-02-03T14:48:54.709Z
owner:
type: string
description: The IRS api consumer.
Expand All @@ -1906,8 +1920,10 @@ components:
startedOn:
type: string
format: date-time
example: 2022-02-03T14:48:54.709Z
state:
type: string
example: COMPLETED
enum:
- UNSAVED
- INITIAL
Expand All @@ -1929,16 +1945,19 @@ components:
properties:
errorDetail:
type: string
example: Timeout while requesting Digital Registry
description: Detailed exception information.
maxLength: 4000
exception:
type: string
description: Exception name.
example: IrsTimeoutException
maxLength: 100
exceptionDate:
type: string
format: date-time
description: Datetime error occurs.
example: 2022-02-03T14:48:54.709Z
JobHandle:
type: object
additionalProperties: false
Expand All @@ -1958,8 +1977,10 @@ components:
properties:
aspects:
type: string
example: SerialPart
bomLifecycle:
type: string
example: asBuilt
description: The lifecycle context in which the child part was assembled
into the parent part.
enum:
Expand All @@ -1968,23 +1989,29 @@ components:
- asSpecified
bpn:
type: string
example: BPNL00000003AYRE
callbackUrl:
type: string
example: https://hostname.com/callback?id={id}&state={state}
collectAspects:
type: boolean
example: false
depth:
type: integer
format: int32
example: 1
maximum: 2147483647
minimum: 0
direction:
type: string
example: upward
description: Item graph traversal direction.
enum:
- upward
- downward
lookupBPNs:
type: boolean
example: false
JobStatusResult:
type: object
additionalProperties: false
Expand Down Expand Up @@ -2053,8 +2080,10 @@ components:
properties:
language:
type: string
example: en
text:
type: string
example: The shell for a vehicle
LinkedItem:
type: object
additionalProperties: false
Expand All @@ -2065,6 +2094,7 @@ components:
type: string
format: date-time
description: Datetime of assembly.
example: 2022-02-03T14:48:54.709Z
childCatenaXId:
type: string
description: CatenaX child global asset id in the format urn:uuid:uuid4.
Expand All @@ -2074,10 +2104,12 @@ components:
pattern: "^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
lastModifiedOn:
type: string
example: 2022-02-03T14:48:54.709Z
format: date-time
description: Last datetime item was modified.
lifecycleContext:
type: string
example: asBuilt
description: The lifecycle context in which the child part was assembled
into the parent part.
enum:
Expand All @@ -2092,8 +2124,10 @@ components:
properties:
datatypeURI:
type: string
example: urn:bamm:io.openmanufacturing:meta-model:1.0.0#piece
lexicalValue:
type: string
example: piece
PageResult:
type: object
additionalProperties: false
Expand Down Expand Up @@ -2143,6 +2177,7 @@ components:
properties:
action:
type: string
example: ACCESS
enum:
- ACCESS
- USE
Expand All @@ -2163,6 +2198,7 @@ components:
$ref: '#/components/schemas/Permission'
policyId:
type: string
example: f253718e-a270-4367-901b-9d50d9bd8462
validUntil:
type: string
format: date-time
Expand Down Expand Up @@ -2195,11 +2231,14 @@ components:
additionalProperties: false
properties:
href:
example: https://edc.data.plane/{path}/submodel
type: string
endpointProtocol:
example: HTTPS
type: string
endpointProtocolVersion:
type: array
example: ["1.0"]
items:
type: string
subprotocol:
Expand All @@ -2217,6 +2256,7 @@ components:
$ref: '#/components/schemas/MeasurementUnit'
quantityNumber:
type: number
example: 1.0
format: double
maximum: 2147483647
minimum: 0
Expand Down Expand Up @@ -2463,8 +2503,10 @@ components:
properties:
aspectType:
type: string
example: SingleLevelBomAsBuilt
bpn:
type: string
example: BPNL00000003AYRE
catenaXId:
type: string
description: CATENA-X global asset id in the format urn:uuid:uuid4.
Expand All @@ -2486,8 +2528,10 @@ components:
properties:
type:
type: string
example: urn:bamm:com.catenax.vehicle:0.1.1
value:
type: string
example: Submodel
Submodel:
type: object
additionalProperties: false
Expand Down
6 changes: 3 additions & 3 deletions irs-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<dependency>
<groupId>org.eclipse.tractusx.irs</groupId>
<artifactId>irs-edc-client</artifactId>
<version>${revision}</version>
<version>${irs-registry-client.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tractusx.irs</groupId>
Expand Down Expand Up @@ -148,7 +148,7 @@
<dependency>
<groupId>org.eclipse.tractusx.irs</groupId>
<artifactId>irs-models</artifactId>
<version>${project.version}</version>
<version>${irs-registry-client.version}</version>
</dependency>
<dependency>
<groupId>net.jimblackler</groupId>
Expand All @@ -171,7 +171,7 @@
<dependency>
<groupId>org.eclipse.tractusx.irs</groupId>
<artifactId>irs-testing</artifactId>
<version>${revision}</version>
<version>${irs-registry-client.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@

import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.examples.Example;
import org.eclipse.tractusx.irs.ess.service.NotificationSummary;
import org.eclipse.tractusx.irs.component.AsyncFetchedItems;
import org.eclipse.tractusx.irs.component.BatchResponse;
import org.eclipse.tractusx.irs.component.BatchOrderResponse;
import org.eclipse.tractusx.irs.component.BatchResponse;
import org.eclipse.tractusx.irs.component.Bpn;
import org.eclipse.tractusx.irs.component.FetchedItems;
import org.eclipse.tractusx.irs.component.GlobalAssetIdentification;
Expand Down Expand Up @@ -67,6 +66,7 @@
import org.eclipse.tractusx.irs.component.enums.ProcessStep;
import org.eclipse.tractusx.irs.component.enums.ProcessingState;
import org.eclipse.tractusx.irs.dtos.ErrorResponse;
import org.eclipse.tractusx.irs.ess.service.NotificationSummary;
import org.eclipse.tractusx.irs.semanticshub.AspectModel;
import org.eclipse.tractusx.irs.semanticshub.AspectModels;
import org.eclipse.tractusx.irs.util.JsonUtil;
Expand All @@ -82,8 +82,8 @@
public class OpenApiExamples {
private static final ZonedDateTime EXAMPLE_ZONED_DATETIME = ZonedDateTime.parse("2022-02-03T14:48:54.709Z");
private static final String JOB_ID = "e5347c88-a921-11ec-b909-0242ac120002";

private static final UUID UUID_ID = UUID.fromString("f253718e-a270-4367-901b-9d50d9bd8462");
private static final String EXAMPLE_ID = "f253718e-a270-4367-901b-9d50d9bd8462";
private static final UUID UUID_ID = UUID.fromString(EXAMPLE_ID);
private static final String GLOBAL_ASSET_ID = "urn:uuid:6c311d29-5753-46d4-b32c-19b918ea93b0";
private static final String SUBMODEL_IDENTIFICATION = "urn:uuid:fc784d2a-5506-4e61-8e34-21600f8cdeff";
private static final String JOB_HANDLE_ID_1 = "6c311d29-5753-46d4-b32c-19b918ea93b0";
Expand Down
2 changes: 1 addition & 1 deletion irs-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<dependency>
<groupId>org.eclipse.tractusx.irs</groupId>
<artifactId>irs-testing</artifactId>
<version>${revision}</version>
<version>${irs-registry-client.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Loading
Loading