Skip to content

Commit a0897f9

Browse files
committed
1 parent 24b10ad commit a0897f9

69 files changed

Lines changed: 2020 additions & 298 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/FILES

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ docs/Authentification200Response.md
66
docs/Authentification401Response.md
77
docs/AuthentificationApi.md
88
docs/AuthentificationRequest.md
9+
docs/Folder200Response.md
10+
docs/Folder200ResponseFoldersInner.md
11+
docs/FolderApi.md
12+
docs/FolderRequest.md
913
docs/LinkApi.md
1014
docs/ReduceLink200Response.md
1115
docs/ReduceLink400Response.md
@@ -14,6 +18,9 @@ docs/Stats200Response.md
1418
docs/Stats400Response.md
1519
docs/StatsApi.md
1620
docs/StatsRequest.md
21+
docs/Team200Response.md
22+
docs/Team200ResponseTeamsInner.md
23+
docs/TeamApi.md
1724
pyproject.toml
1825
requirements.txt
1926
setup.cfg
@@ -24,6 +31,10 @@ test/test_authentification200_response.py
2431
test/test_authentification401_response.py
2532
test/test_authentification_api.py
2633
test/test_authentification_request.py
34+
test/test_folder200_response.py
35+
test/test_folder200_response_folders_inner.py
36+
test/test_folder_api.py
37+
test/test_folder_request.py
2738
test/test_link_api.py
2839
test/test_reduce_link200_response.py
2940
test/test_reduce_link400_response.py
@@ -32,12 +43,17 @@ test/test_stats200_response.py
3243
test/test_stats400_response.py
3344
test/test_stats_api.py
3445
test/test_stats_request.py
46+
test/test_team200_response.py
47+
test/test_team200_response_teams_inner.py
48+
test/test_team_api.py
3549
tox.ini
3650
urlr/__init__.py
3751
urlr/api/__init__.py
3852
urlr/api/authentification_api.py
53+
urlr/api/folder_api.py
3954
urlr/api/link_api.py
4055
urlr/api/stats_api.py
56+
urlr/api/team_api.py
4157
urlr/api_client.py
4258
urlr/api_response.py
4359
urlr/configuration.py
@@ -46,11 +62,16 @@ urlr/models/__init__.py
4662
urlr/models/authentification200_response.py
4763
urlr/models/authentification401_response.py
4864
urlr/models/authentification_request.py
65+
urlr/models/folder200_response.py
66+
urlr/models/folder200_response_folders_inner.py
67+
urlr/models/folder_request.py
4968
urlr/models/reduce_link200_response.py
5069
urlr/models/reduce_link400_response.py
5170
urlr/models/reduce_link_request.py
5271
urlr/models/stats200_response.py
5372
urlr/models/stats400_response.py
5473
urlr/models/stats_request.py
74+
urlr/models/team200_response.py
75+
urlr/models/team200_response_teams_inner.py
5576
urlr/py.typed
5677
urlr/rest.py

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.2.0
1+
7.3.0

CHANGELOG.md

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

3+
## [1.1.0] - 2024-02-13
4+
5+
- Add two new endpoints
6+
- Doc improvements
7+
- Updated to OpenAPI Generator 7.3.0
8+
39
## [1.0.1] - 2024-02-01
410

511
- Fix two return types in reduce_link200_response

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# urlr@1.0.1
1+
# urlr@1.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

7-
- API version: 0.2
8-
- Package version: 1.0.1
7+
- API version: 0.3
8+
- Package version: 1.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)
@@ -94,21 +94,28 @@ All URIs are relative to *https://urlr.me/api*
9494
Class | Method | HTTP request | Description
9595
------------ | ------------- | ------------- | -------------
9696
*AuthentificationApi* | [**authentification**](docs/AuthentificationApi.md#authentification) | **POST** /login_check | Get an access token
97-
*LinkApi* | [**reduce_link**](docs/LinkApi.md#reduce_link) | **POST** /reduce-link | Reduce a link
97+
*FolderApi* | [**folder**](docs/FolderApi.md#folder) | **GET** /folder | Get folders of team
98+
*LinkApi* | [**reduce_link**](docs/LinkApi.md#reduce_link) | **POST** /reduce-link | Shorten a link
9899
*StatsApi* | [**stats**](docs/StatsApi.md#stats) | **POST** /stats | Get statistics of a link
100+
*TeamApi* | [**team**](docs/TeamApi.md#team) | **GET** /team | Get teams of user
99101

100102

101103
## Models
102104

103105
- [Authentification200Response](docs/Authentification200Response.md)
104106
- [Authentification401Response](docs/Authentification401Response.md)
105107
- [AuthentificationRequest](docs/AuthentificationRequest.md)
108+
- [Folder200Response](docs/Folder200Response.md)
109+
- [Folder200ResponseFoldersInner](docs/Folder200ResponseFoldersInner.md)
110+
- [FolderRequest](docs/FolderRequest.md)
106111
- [ReduceLink200Response](docs/ReduceLink200Response.md)
107112
- [ReduceLink400Response](docs/ReduceLink400Response.md)
108113
- [ReduceLinkRequest](docs/ReduceLinkRequest.md)
109114
- [Stats200Response](docs/Stats200Response.md)
110115
- [Stats400Response](docs/Stats400Response.md)
111116
- [StatsRequest](docs/StatsRequest.md)
117+
- [Team200Response](docs/Team200Response.md)
118+
- [Team200ResponseTeamsInner](docs/Team200ResponseTeamsInner.md)
112119

113120

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

docs/AuthentificationApi.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Get an access token
1616

1717

1818
```python
19-
import time
20-
import os
2119
import urlr
2220
from urlr.models.authentification200_response import Authentification200Response
2321
from urlr.models.authentification_request import AuthentificationRequest

docs/AuthentificationRequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**username** | **str** | | [optional]
9-
**password** | **str** | | [optional]
8+
**username** | **str** | Email | [optional]
9+
**password** | **str** | Password | [optional]
1010

1111
## Example
1212

docs/Folder200Response.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Folder200Response
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**folders** | [**List[Folder200ResponseFoldersInner]**](Folder200ResponseFoldersInner.md) | | [optional]
9+
10+
## Example
11+
12+
```python
13+
from urlr.models.folder200_response import Folder200Response
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of Folder200Response from a JSON string
18+
folder200_response_instance = Folder200Response.from_json(json)
19+
# print the JSON string representation of the object
20+
print Folder200Response.to_json()
21+
22+
# convert the object into a dict
23+
folder200_response_dict = folder200_response_instance.to_dict()
24+
# create an instance of Folder200Response from a dict
25+
folder200_response_form_dict = folder200_response.from_dict(folder200_response_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Folder200ResponseFoldersInner
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **int** | Folder ID | [optional]
9+
**name** | **str** | Folder name | [optional]
10+
11+
## Example
12+
13+
```python
14+
from urlr.models.folder200_response_folders_inner import Folder200ResponseFoldersInner
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of Folder200ResponseFoldersInner from a JSON string
19+
folder200_response_folders_inner_instance = Folder200ResponseFoldersInner.from_json(json)
20+
# print the JSON string representation of the object
21+
print Folder200ResponseFoldersInner.to_json()
22+
23+
# convert the object into a dict
24+
folder200_response_folders_inner_dict = folder200_response_folders_inner_instance.to_dict()
25+
# create an instance of Folder200ResponseFoldersInner from a dict
26+
folder200_response_folders_inner_form_dict = folder200_response_folders_inner.from_dict(folder200_response_folders_inner_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/FolderApi.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# urlr.FolderApi
2+
3+
All URIs are relative to *https://urlr.me/api*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**folder**](FolderApi.md#folder) | **GET** /folder | Get folders of team
8+
9+
10+
# **folder**
11+
> Folder200Response folder(folder_request=folder_request)
12+
13+
Get folders of team
14+
15+
### Example
16+
17+
* Bearer (JWT) Authentication (bearerAuth):
18+
19+
```python
20+
import urlr
21+
from urlr.models.folder200_response import Folder200Response
22+
from urlr.models.folder_request import FolderRequest
23+
from urlr.rest import ApiException
24+
from pprint import pprint
25+
26+
# Defining the host is optional and defaults to https://urlr.me/api
27+
# See configuration.py for a list of all supported configuration parameters.
28+
configuration = urlr.Configuration(
29+
host = "https://urlr.me/api"
30+
)
31+
32+
# The client must configure the authentication and authorization parameters
33+
# in accordance with the API server security policy.
34+
# Examples for each auth method are provided below, use the example that
35+
# satisfies your auth use case.
36+
37+
# Configure Bearer authorization (JWT): bearerAuth
38+
configuration = urlr.Configuration(
39+
access_token = os.environ["BEARER_TOKEN"]
40+
)
41+
42+
# Enter a context with an instance of the API client
43+
with urlr.ApiClient(configuration) as api_client:
44+
# Create an instance of the API class
45+
api_instance = urlr.FolderApi(api_client)
46+
folder_request = urlr.FolderRequest() # FolderRequest | Infos to provide to get folders of team (optional)
47+
48+
try:
49+
# Get folders of team
50+
api_response = api_instance.folder(folder_request=folder_request)
51+
print("The response of FolderApi->folder:\n")
52+
pprint(api_response)
53+
except Exception as e:
54+
print("Exception when calling FolderApi->folder: %s\n" % e)
55+
```
56+
57+
58+
59+
### Parameters
60+
61+
62+
Name | Type | Description | Notes
63+
------------- | ------------- | ------------- | -------------
64+
**folder_request** | [**FolderRequest**](FolderRequest.md)| Infos to provide to get folders of team | [optional]
65+
66+
### Return type
67+
68+
[**Folder200Response**](Folder200Response.md)
69+
70+
### Authorization
71+
72+
[bearerAuth](../README.md#bearerAuth)
73+
74+
### HTTP request headers
75+
76+
- **Content-Type**: application/json
77+
- **Accept**: application/json
78+
79+
### HTTP response details
80+
81+
| Status code | Description | Response headers |
82+
|-------------|-------------|------------------|
83+
**200** | Folders of team | - |
84+
85+
[[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)
86+

docs/FolderRequest.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# FolderRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**team** | **int** | Team ID (displayed on dashboard) |
9+
10+
## Example
11+
12+
```python
13+
from urlr.models.folder_request import FolderRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of FolderRequest from a JSON string
18+
folder_request_instance = FolderRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print FolderRequest.to_json()
21+
22+
# convert the object into a dict
23+
folder_request_dict = folder_request_instance.to_dict()
24+
# create an instance of FolderRequest from a dict
25+
folder_request_form_dict = folder_request.from_dict(folder_request_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

0 commit comments

Comments
 (0)