Skip to content

Delete repository without setting repository id in client #4

@Mvwivs

Description

@Mvwivs

Trying to delete repository using client.deleteRepository(repositoryID); without client.setRepositoryId(repositoryID) results in error 404

import { ObjectProviderImpl } from "@agentlab/sparql-jsld-client";

const provider = new ObjectProviderImpl();
const client = provider.getClient();
client.setServerUrl('https://...');
// no set repository id
// client.setRepositoryId("tmp123");
await client.deleteRepository("tmp123");

Result: Error: Request failed with status code 404

There is no reason to specify id twice in this situation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions