Skip to content

Commit

Permalink
fix: api URLs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfaron committed Dec 12, 2023
1 parent e593d83 commit 47bbac5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class AasxServerV3 extends AasxServer {

public async getBlobValueAsync(env: aas.Environment, submodelId: string, idShortPath: string): Promise<string | undefined> {
const blob = await this.message.get<aas.Blob>(
this.resolve(`/submodels/${submodelId}/submodel/submodel-elements/${idShortPath}/?extent=WithBlobValue`));
this.resolve(`/submodels/${submodelId}/submodel-elements/${idShortPath}/?extent=WithBlobValue`));

if (!blob) {
throw new Error(`Blob element "${submodelId}.${idShortPath}" does not exist.`)
Expand All @@ -232,7 +232,7 @@ export class AasxServerV3 extends AasxServer {
private async putSubmodelAsync(aasId: string, submodel: aas.Submodel): Promise<string> {
const smId = encodeBase64Url(submodel.id);
return await this.message.put(
this.resolve(`/shells/${aasId}/aas/submodels/${smId}/submodel`),
this.resolve(`/shells/${aasId}/submodels/${smId}`),
new JsonWriter().write(submodel));
}

Expand Down Expand Up @@ -265,7 +265,7 @@ export class AasxServerV3 extends AasxServer {
const smId = encodeBase64Url(submodel.id);
const path = getIdShortPath(submodelElement);
return await this.message.delete(
this.resolve(`/submodels/${smId}/submodel/submodel-elements/${path}`));
this.resolve(`/submodels/${smId}/submodel-elements/${path}`));
}

private getSubmodel(env: aas.Environment, referable?: aas.Referable): aas.Submodel {
Expand Down

0 comments on commit 47bbac5

Please sign in to comment.