You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,12 +26,14 @@ A simple wrapper for the Fossology REST API.
26
26
27
27
See `the OpenAPI specification <https://raw.githubusercontent.com/fossology/fossology/master/src/www/ui/api/documentation/openapi.yaml>`_ used to implement this library.
28
28
29
-
Current release is compatible with **Fossology version 4.4.0** - API version 2.0.0 (not all endpoints are supported)
29
+
Current release is compatible with **Fossology version 4.4.0-rc2** - API version 2.0.0 (not all endpoints are supported)
30
30
31
31
`See release notes <https://github.com/fossology/fossology-python/releases>`_ for all details.
32
32
33
33
If you miss an API Endpoint, please open a new issue or contribute a pull request.
34
34
35
+
API v1 is supported too, it needs to be specified explicitly.
36
+
35
37
Documentation
36
38
=============
37
39
@@ -61,17 +63,19 @@ Using the API
61
63
from fossology import fossology_token
62
64
from fossology.enum import TokenScope
63
65
64
-
FOSSOLOGY_SERVER="https://fossology.example.com/repo"# Note the absense of the trailing slash, otherwise the token generation will fail
66
+
FOSSOLOGY_SERVER="https://fossology.example.com/repo"# Note the absence of the trailing slash, otherwise the token generation will fail
65
67
FOSSOLOGY_USER="fossy"
66
68
FOSSOLOGY_PASSWORD="fossy"
67
69
TOKEN_NAME="fossy_token"
68
70
71
+
# By default version v2 of the token generation API will be used
69
72
token = fossology_token(
70
73
FOSSOLOGY_SERVER,
71
74
FOSSOLOGY_USER,
72
75
FOSSOLOGY_PASSWORD,
73
76
TOKEN_NAME,
74
77
TokenScope.WRITE
78
+
version="v2"
75
79
)
76
80
77
81
- Start using the API:
@@ -80,8 +84,8 @@ Using the API
80
84
81
85
from fossology import Fossology
82
86
83
-
#Starting from API version 1.2.3, the `FOSSOLOGY_USER` option is not needed anymore
0 commit comments