Skip to content

Commit e562e89

Browse files
committed
1 parent 3f62f96 commit e562e89

34 files changed

Lines changed: 34 additions & 1251 deletions

.openapi-generator/FILES

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ docs/QrcodeCreateRequestOneOf.md
3636
docs/QrcodeCreateRequestOneOf1.md
3737
docs/StatisticGet200Response.md
3838
docs/StatisticsApi.md
39-
docs/Workspace.md
40-
docs/WorkspaceList200Response.md
41-
docs/WorkspacesApi.md
4239
pyproject.toml
4340
requirements.txt
4441
setup.cfg
@@ -79,9 +76,6 @@ test/test_qrcode_create_request_one_of.py
7976
test/test_qrcode_create_request_one_of1.py
8077
test/test_statistic_get200_response.py
8178
test/test_statistics_api.py
82-
test/test_workspace.py
83-
test/test_workspace_list200_response.py
84-
test/test_workspaces_api.py
8579
tox.ini
8680
urlr/__init__.py
8781
urlr/api/__init__.py
@@ -90,7 +84,6 @@ urlr/api/folders_api.py
9084
urlr/api/links_api.py
9185
urlr/api/qr_codes_api.py
9286
urlr/api/statistics_api.py
93-
urlr/api/workspaces_api.py
9487
urlr/api_client.py
9588
urlr/api_response.py
9689
urlr/configuration.py
@@ -125,7 +118,5 @@ urlr/models/qrcode_create_request.py
125118
urlr/models/qrcode_create_request_one_of.py
126119
urlr/models/qrcode_create_request_one_of1.py
127120
urlr/models/statistic_get200_response.py
128-
urlr/models/workspace.py
129-
urlr/models/workspace_list200_response.py
130121
urlr/py.typed
131122
urlr/rest.py

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## [3.1.0] - 2026-05-19
4+
5+
- Adapt to workspace_id field removal. Not a breaking change because API V2 is still not officially used.
36
## [3.0.2] - 2026-05-14
47

58
- Fix example of getting started readme section

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# urlr@3.0.2
1+
# urlr@3.1.0
22

33
![PyPI - Version](https://img.shields.io/pypi/v/urlr) ![PyPI - Downloads](https://img.shields.io/pypi/dm/urlr) ![PyPI - License](https://img.shields.io/pypi/l/urlr)
44

55
This SDK is automatically generated with the [OpenAPI Generator](https://openapi-generator.tech) project.
66

77
- API version: 2.0.0
8-
- Package version: 3.0.2
8+
- Package version: 3.1.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

1111
For more information, please visit [https://urlr.me/en](https://urlr.me/en)
@@ -64,7 +64,6 @@ with urlr.ApiClient(configuration) as api_client:
6464
links_api = urlr.LinksApi(api_client)
6565
link_create_request = urlr.LinkCreateRequest(
6666
url="",
67-
workspace_id=""
6867
)
6968

7069
try:
@@ -94,8 +93,6 @@ Class | Method | HTTP request | Description
9493
*LinksApi* | [**link_list**](docs/LinksApi.md#link_list) | **GET** /links | List links
9594
*QRCodesApi* | [**qrcode_create**](docs/QRCodesApi.md#qrcode_create) | **POST** /qrcodes | Create a QR Code
9695
*StatisticsApi* | [**statistic_get**](docs/StatisticsApi.md#statistic_get) | **GET** /statistics | Get statistics
97-
*WorkspacesApi* | [**workspace_get**](docs/WorkspacesApi.md#workspace_get) | **GET** /workspaces/{workspace_id} | Get a workspace
98-
*WorkspacesApi* | [**workspace_list**](docs/WorkspacesApi.md#workspace_list) | **GET** /workspaces | List workspaces of user
9996

10097

10198
## Models
@@ -129,8 +126,6 @@ Class | Method | HTTP request | Description
129126
- [QrcodeCreateRequestOneOf](docs/QrcodeCreateRequestOneOf.md)
130127
- [QrcodeCreateRequestOneOf1](docs/QrcodeCreateRequestOneOf1.md)
131128
- [StatisticGet200Response](docs/StatisticGet200Response.md)
132-
- [Workspace](docs/Workspace.md)
133-
- [WorkspaceList200Response](docs/WorkspaceList200Response.md)
134129

135130

136131
<a id="documentation-for-authorization"></a>

docs/FolderCreateRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**workspace_id** | **UUID** | Workspace API ID |
98
**name** | **str** | Name |
109
**parent_id** | **UUID** | Folder API ID | [optional]
1110
**color** | **str** | Color of folder | [optional]

docs/FoldersApi.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Name | Type | Description | Notes
173173
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
174174

175175
# **folder_list**
176-
> FolderList200Response folder_list(workspace_id)
176+
> FolderList200Response folder_list()
177177
178178
List folders
179179

@@ -208,11 +208,10 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
208208
with urlr.ApiClient(configuration) as api_client:
209209
# Create an instance of the API class
210210
api_instance = urlr.FoldersApi(api_client)
211-
workspace_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Workspace API ID
212211

213212
try:
214213
# List folders
215-
api_response = api_instance.folder_list(workspace_id)
214+
api_response = api_instance.folder_list()
216215
print("The response of FoldersApi->folder_list:\n")
217216
pprint(api_response)
218217
except Exception as e:
@@ -223,10 +222,7 @@ with urlr.ApiClient(configuration) as api_client:
223222

224223
### Parameters
225224

226-
227-
Name | Type | Description | Notes
228-
------------- | ------------- | ------------- | -------------
229-
**workspace_id** | **UUID**| Workspace API ID |
225+
This endpoint does not need any parameter.
230226

231227
### Return type
232228

docs/LinkCreateRequest.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**url** | **str** | URL to shorten |
8+
**url** | **str** | URL to shorten | [optional]
99
**folder_id** | **UUID** | Folder API ID | [optional]
1010
**domain** | **str** | Domain | [optional]
1111
**code** | **str** | Custom short code | [optional]
@@ -22,7 +22,6 @@ Name | Type | Description | Notes
2222
**utm** | [**LinkUtm**](LinkUtm.md) | | [optional]
2323
**metatag** | [**LinkBaseRequestMetatag**](LinkBaseRequestMetatag.md) | | [optional]
2424
**geolinks** | [**List[LinkGeolinksInner]**](LinkGeolinksInner.md) | Dynamic routing conditions | [optional]
25-
**workspace_id** | **UUID** | Workspace API ID |
2625

2726
## Example
2827

docs/LinksApi.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Name | Type | Description | Notes
9494
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
9595

9696
# **link_delete**
97-
> Link link_delete(link_id)
97+
> link_delete(link_id)
9898
9999
Delete a link
100100

@@ -104,7 +104,6 @@ Delete a link
104104

105105
```python
106106
import urlr
107-
from urlr.models.link import Link
108107
from urlr.rest import ApiException
109108
from pprint import pprint
110109

@@ -133,9 +132,7 @@ with urlr.ApiClient(configuration) as api_client:
133132

134133
try:
135134
# Delete a link
136-
api_response = api_instance.link_delete(link_id)
137-
print("The response of LinksApi->link_delete:\n")
138-
pprint(api_response)
135+
api_instance.link_delete(link_id)
139136
except Exception as e:
140137
print("Exception when calling LinksApi->link_delete: %s\n" % e)
141138
```
@@ -151,7 +148,7 @@ Name | Type | Description | Notes
151148

152149
### Return type
153150

154-
[**Link**](Link.md)
151+
void (empty response body)
155152

156153
### Authorization
157154

@@ -160,13 +157,13 @@ Name | Type | Description | Notes
160157
### HTTP request headers
161158

162159
- **Content-Type**: Not defined
163-
- **Accept**: application/json, application/problem+json
160+
- **Accept**: application/problem+json
164161

165162
### HTTP response details
166163

167164
| Status code | Description | Response headers |
168165
|-------------|-------------|------------------|
169-
**204** | Link | - |
166+
**204** | Link deleted | - |
170167
**404** | Not Found | - |
171168
**401** | Unauthorized | - |
172169
**422** | Validation Failed | - |
@@ -339,7 +336,7 @@ Name | Type | Description | Notes
339336
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
340337

341338
# **link_list**
342-
> LinkList200Response link_list(workspace_id=workspace_id, folder_id=folder_id, tag_id=tag_id, limit=limit, page=page)
339+
> LinkList200Response link_list(folder_id=folder_id, tag_id=tag_id, limit=limit, page=page)
343340
344341
List links
345342

@@ -374,15 +371,14 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
374371
with urlr.ApiClient(configuration) as api_client:
375372
# Create an instance of the API class
376373
api_instance = urlr.LinksApi(api_client)
377-
workspace_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Filter by Workspace API ID (optional)
378374
folder_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Filter by Folder API ID (optional)
379375
tag_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Filter by Tag API ID (optional)
380376
limit = 10 # int | Number of items per page (optional) (default to 10)
381377
page = 1 # int | Page number (optional) (default to 1)
382378

383379
try:
384380
# List links
385-
api_response = api_instance.link_list(workspace_id=workspace_id, folder_id=folder_id, tag_id=tag_id, limit=limit, page=page)
381+
api_response = api_instance.link_list(folder_id=folder_id, tag_id=tag_id, limit=limit, page=page)
386382
print("The response of LinksApi->link_list:\n")
387383
pprint(api_response)
388384
except Exception as e:
@@ -396,7 +392,6 @@ with urlr.ApiClient(configuration) as api_client:
396392

397393
Name | Type | Description | Notes
398394
------------- | ------------- | ------------- | -------------
399-
**workspace_id** | **UUID**| Filter by Workspace API ID | [optional]
400395
**folder_id** | **UUID**| Filter by Folder API ID | [optional]
401396
**tag_id** | **UUID**| Filter by Tag API ID | [optional]
402397
**limit** | **int**| Number of items per page | [optional] [default to 10]

docs/QrcodeCreateRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Name | Type | Description | Notes
1111
**background_color** | **str** | The background color of the QR code (hexadecimal) | [optional] [default to '#ffffff']
1212
**foreground_color** | **str** | The foreground color of the QR code (hexadecimal) | [optional] [default to '#000000']
1313
**url** | **str** | URL of the QR Code |
14-
**workspace_id** | **UUID** | Workspace API ID |
1514
**link_id** | **UUID** | Link API ID of the QR Code |
1615

1716
## Example

docs/QrcodeCreateRequestOneOf.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**url** | **str** | URL of the QR Code |
9-
**workspace_id** | **UUID** | Workspace API ID |
109

1110
## Example
1211

docs/Workspace.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)