Skip to content

Commit

Permalink
doc: add commands for testing the api with example data
Browse files Browse the repository at this point in the history
  • Loading branch information
Elodie Thiéblin committed Jul 31, 2024
1 parent 1b69ccc commit 7456aa0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,25 @@ Or you can pip install it from pypi.
pip install domus-tdd-api-plugin-aid
```

## Testing with example data

Have a fuseki running (and the config.toml/environment variables) set to the SPARQL endpoint route

Install the plugin (see above), then

```
cd domus-tdd-api-plugin-aid
source env_name/bin/activate
domus-tdd-api run
```

In another terminal in the `domus-tdd-api-plugin-aid` folder

```
curl -XPOST -iH "Content-Type: application/aml+xml" -d@"./domus_tdd_api_plugin_aid/tests/data/aml/aml_example.xml" http://localhost:5000/aas
```

## New routes

- `/aas` : POST to create an anonymous Asset Administration Shell Object
Expand Down

0 comments on commit 7456aa0

Please sign in to comment.