Skip to content

Commit 95835d5

Browse files
committed
Update for initial release
1 parent 723c555 commit 95835d5

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
1-
# inventree-java
1+
# InvenTree SDK (Java)
22

3-
An Inventree api client
3+
A Java [InvenTree](https://inventree.org/) ([GitHub](https://github.com/inventree/InvenTree)) api client.
44

5+
## Usage
56

7+
Simply include in your dependency pom like so:
68

7-
https://github.com/inventree/inventree-python
9+
```xml
10+
<dependency>
11+
<groupId>com.w3asel</groupId>
12+
<artifactId>inventree-sdk-java</artifactId>
13+
<version>0.18.317</version>
14+
</dependency>
15+
```
816

9-
https://github.com/jellyfin/jellyfin-sdk-kotlin
17+
The version number is a mix of the InvenTree release (0.18) and the schema version (317) with point releases after that when multiple client jars are released against the same schema.
1018

11-
https://drf-spectacular.readthedocs.io/en/latest/client_generation.html
19+
## Running a Local InvenTree Server
1220

13-
## Test Server
21+
Set up an [InvenTree dev environment](https://docs.inventree.org/en/stable/develop/devcontainer/).
1422

1523
```sh
16-
invoke dev.setup --test
24+
invoke dev.setup-test
1725
invoke dev.server
1826
```
1927

20-
## Generate Schema
28+
Be sure to run `invoke update` when pulling updates into your dev environment.
29+
30+
### Generate Schema from InvenTree
31+
32+
You can either browse to http://localhost:8000/api-doc/ (or the corresponding path on your instance, browsable from the About InvenTree dialog), or from a dev environment run:
2133

2234
```sh
23-
find src/backend/ -name \*serializers.py -exec sed -i "s/self.fields.pop/pass# self.fields.pop/g" {} \;
2435
invoke dev.schema --ignore-warnings --filename api.yaml --overwrite
2536
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<groupId>com.w3asel</groupId>
1010
<artifactId>inventree-sdk-java</artifactId>
1111
<packaging>jar</packaging>
12-
<version>317-SNAPSHOT</version>
12+
<version>0.18.317-SNAPSHOT</version>
1313

1414
<licenses>
1515
<license>

0 commit comments

Comments
 (0)