Skip to content

Commit 893a0db

Browse files
committed
1 parent 7341795 commit 893a0db

122 files changed

Lines changed: 4326 additions & 2652 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: 72 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,76 +2,91 @@
22
.gitignore
33
.gitlab-ci.yml
44
README.md
5-
docs/Authentification200Response.md
6-
docs/Authentification401Response.md
7-
docs/AuthentificationApi.md
8-
docs/AuthentificationRequest.md
9-
docs/Folder200Response.md
10-
docs/Folder200ResponseFoldersInner.md
11-
docs/FolderApi.md
12-
docs/FolderRequest.md
13-
docs/LinkApi.md
14-
docs/ReduceLink200Response.md
15-
docs/ReduceLink400Response.md
16-
docs/ReduceLinkRequest.md
17-
docs/Stats200Response.md
18-
docs/Stats400Response.md
19-
docs/StatsApi.md
20-
docs/StatsRequest.md
21-
docs/Team200Response.md
22-
docs/Team200ResponseTeamsInner.md
23-
docs/TeamApi.md
5+
docs/AccessTokensApi.md
6+
docs/CreateAccessToken200Response.md
7+
docs/CreateAccessToken401Response.md
8+
docs/CreateAccessTokenRequest.md
9+
docs/CreateLink201Response.md
10+
docs/CreateLink429Response.md
11+
docs/CreateLink500Response.md
12+
docs/CreateLinkRequest.md
13+
docs/FoldersApi.md
14+
docs/GetFolders200Response.md
15+
docs/GetFolders200ResponseFoldersInner.md
16+
docs/GetLink200Response.md
17+
docs/GetLink401Response.md
18+
docs/GetLink404Response.md
19+
docs/GetLink422Response.md
20+
docs/GetStatistics200Response.md
21+
docs/GetStatisticsRequest.md
22+
docs/GetTeams200Response.md
23+
docs/GetTeams200ResponseTeamsInner.md
24+
docs/LinksApi.md
25+
docs/RefreshAccessToken401Response.md
26+
docs/RefreshAccessTokenRequest.md
27+
docs/StatisticsApi.md
28+
docs/TeamsApi.md
2429
pyproject.toml
2530
requirements.txt
2631
setup.cfg
2732
setup.py
2833
test-requirements.txt
2934
test/__init__.py
30-
test/test_authentification200_response.py
31-
test/test_authentification401_response.py
32-
test/test_authentification_api.py
33-
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
38-
test/test_link_api.py
39-
test/test_reduce_link200_response.py
40-
test/test_reduce_link400_response.py
41-
test/test_reduce_link_request.py
42-
test/test_stats200_response.py
43-
test/test_stats400_response.py
44-
test/test_stats_api.py
45-
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
35+
test/test_access_tokens_api.py
36+
test/test_create_access_token200_response.py
37+
test/test_create_access_token401_response.py
38+
test/test_create_access_token_request.py
39+
test/test_create_link201_response.py
40+
test/test_create_link429_response.py
41+
test/test_create_link500_response.py
42+
test/test_create_link_request.py
43+
test/test_folders_api.py
44+
test/test_get_folders200_response.py
45+
test/test_get_folders200_response_folders_inner.py
46+
test/test_get_link200_response.py
47+
test/test_get_link401_response.py
48+
test/test_get_link404_response.py
49+
test/test_get_link422_response.py
50+
test/test_get_statistics200_response.py
51+
test/test_get_statistics_request.py
52+
test/test_get_teams200_response.py
53+
test/test_get_teams200_response_teams_inner.py
54+
test/test_links_api.py
55+
test/test_refresh_access_token401_response.py
56+
test/test_refresh_access_token_request.py
57+
test/test_statistics_api.py
58+
test/test_teams_api.py
4959
tox.ini
5060
urlr/__init__.py
5161
urlr/api/__init__.py
52-
urlr/api/authentification_api.py
53-
urlr/api/folder_api.py
54-
urlr/api/link_api.py
55-
urlr/api/stats_api.py
56-
urlr/api/team_api.py
62+
urlr/api/access_tokens_api.py
63+
urlr/api/folders_api.py
64+
urlr/api/links_api.py
65+
urlr/api/statistics_api.py
66+
urlr/api/teams_api.py
5767
urlr/api_client.py
5868
urlr/api_response.py
5969
urlr/configuration.py
6070
urlr/exceptions.py
6171
urlr/models/__init__.py
62-
urlr/models/authentification200_response.py
63-
urlr/models/authentification401_response.py
64-
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
68-
urlr/models/reduce_link200_response.py
69-
urlr/models/reduce_link400_response.py
70-
urlr/models/reduce_link_request.py
71-
urlr/models/stats200_response.py
72-
urlr/models/stats400_response.py
73-
urlr/models/stats_request.py
74-
urlr/models/team200_response.py
75-
urlr/models/team200_response_teams_inner.py
72+
urlr/models/create_access_token200_response.py
73+
urlr/models/create_access_token401_response.py
74+
urlr/models/create_access_token_request.py
75+
urlr/models/create_link201_response.py
76+
urlr/models/create_link429_response.py
77+
urlr/models/create_link500_response.py
78+
urlr/models/create_link_request.py
79+
urlr/models/get_folders200_response.py
80+
urlr/models/get_folders200_response_folders_inner.py
81+
urlr/models/get_link200_response.py
82+
urlr/models/get_link401_response.py
83+
urlr/models/get_link404_response.py
84+
urlr/models/get_link422_response.py
85+
urlr/models/get_statistics200_response.py
86+
urlr/models/get_statistics_request.py
87+
urlr/models/get_teams200_response.py
88+
urlr/models/get_teams200_response_teams_inner.py
89+
urlr/models/refresh_access_token401_response.py
90+
urlr/models/refresh_access_token_request.py
7691
urlr/py.typed
7792
urlr/rest.py

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.0
1+
7.6.0

CHANGELOG.md

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

3+
## [2.0.0] - 2024-05-29
4+
5+
- Updated URLR API version to 1.0
6+
- Updated to OpenAPI Generator 7.6.0
7+
38
## [1.2.0] - 2024-04-02
49

510
- Updated URLR API version to 0.4

README.md

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# urlr@1.2.0
1+
# urlr@2.0.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.3
8-
- Package version: 1.2.0
7+
- API version: 1.0
8+
- Package version: 2.0.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

1111
For more information, please visit [https://urlr.me/en](https://urlr.me/en)
@@ -89,33 +89,40 @@ A complete example is [available here](examples/example1.py).
8989

9090
## API Endpoints
9191

92-
All URIs are relative to *https://urlr.me/api*
92+
All URIs are relative to *https://urlr.me/api/v1*
9393

9494
Class | Method | HTTP request | Description
9595
------------ | ------------- | ------------- | -------------
96-
*AuthentificationApi* | [**authentification**](docs/AuthentificationApi.md#authentification) | **POST** /login_check | Get an access token
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
99-
*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
96+
*AccessTokensApi* | [**create_access_token**](docs/AccessTokensApi.md#create_access_token) | **POST** /access_tokens/create | Get an access token
97+
*AccessTokensApi* | [**refresh_access_token**](docs/AccessTokensApi.md#refresh_access_token) | **POST** /access_tokens/refresh | Refresh an access token
98+
*FoldersApi* | [**get_folders**](docs/FoldersApi.md#get_folders) | **GET** /folders/{team_id} | Get folders of team
99+
*LinksApi* | [**create_link**](docs/LinksApi.md#create_link) | **POST** /links/create | Create a link
100+
*LinksApi* | [**get_link**](docs/LinksApi.md#get_link) | **GET** /links/{link_id} | Get a link
101+
*StatisticsApi* | [**get_statistics**](docs/StatisticsApi.md#get_statistics) | **POST** /statistics | Get statistics of a link
102+
*TeamsApi* | [**get_teams**](docs/TeamsApi.md#get_teams) | **GET** /teams | Get teams of user
101103

102104

103105
## Models
104106

105-
- [Authentification200Response](docs/Authentification200Response.md)
106-
- [Authentification401Response](docs/Authentification401Response.md)
107-
- [AuthentificationRequest](docs/AuthentificationRequest.md)
108-
- [Folder200Response](docs/Folder200Response.md)
109-
- [Folder200ResponseFoldersInner](docs/Folder200ResponseFoldersInner.md)
110-
- [FolderRequest](docs/FolderRequest.md)
111-
- [ReduceLink200Response](docs/ReduceLink200Response.md)
112-
- [ReduceLink400Response](docs/ReduceLink400Response.md)
113-
- [ReduceLinkRequest](docs/ReduceLinkRequest.md)
114-
- [Stats200Response](docs/Stats200Response.md)
115-
- [Stats400Response](docs/Stats400Response.md)
116-
- [StatsRequest](docs/StatsRequest.md)
117-
- [Team200Response](docs/Team200Response.md)
118-
- [Team200ResponseTeamsInner](docs/Team200ResponseTeamsInner.md)
107+
- [CreateAccessToken200Response](docs/CreateAccessToken200Response.md)
108+
- [CreateAccessToken401Response](docs/CreateAccessToken401Response.md)
109+
- [CreateAccessTokenRequest](docs/CreateAccessTokenRequest.md)
110+
- [CreateLink201Response](docs/CreateLink201Response.md)
111+
- [CreateLink429Response](docs/CreateLink429Response.md)
112+
- [CreateLink500Response](docs/CreateLink500Response.md)
113+
- [CreateLinkRequest](docs/CreateLinkRequest.md)
114+
- [GetFolders200Response](docs/GetFolders200Response.md)
115+
- [GetFolders200ResponseFoldersInner](docs/GetFolders200ResponseFoldersInner.md)
116+
- [GetLink200Response](docs/GetLink200Response.md)
117+
- [GetLink401Response](docs/GetLink401Response.md)
118+
- [GetLink404Response](docs/GetLink404Response.md)
119+
- [GetLink422Response](docs/GetLink422Response.md)
120+
- [GetStatistics200Response](docs/GetStatistics200Response.md)
121+
- [GetStatisticsRequest](docs/GetStatisticsRequest.md)
122+
- [GetTeams200Response](docs/GetTeams200Response.md)
123+
- [GetTeams200ResponseTeamsInner](docs/GetTeams200ResponseTeamsInner.md)
124+
- [RefreshAccessToken401Response](docs/RefreshAccessToken401Response.md)
125+
- [RefreshAccessTokenRequest](docs/RefreshAccessTokenRequest.md)
119126

120127

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

docs/AccessTokensApi.md

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
# urlr.AccessTokensApi
2+
3+
All URIs are relative to *https://urlr.me/api/v1*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**create_access_token**](AccessTokensApi.md#create_access_token) | **POST** /access_tokens/create | Get an access token
8+
[**refresh_access_token**](AccessTokensApi.md#refresh_access_token) | **POST** /access_tokens/refresh | Refresh an access token
9+
10+
11+
# **create_access_token**
12+
> CreateAccessToken200Response create_access_token(create_access_token_request=create_access_token_request)
13+
14+
Get an access token
15+
16+
### Example
17+
18+
19+
```python
20+
import urlr
21+
from urlr.models.create_access_token200_response import CreateAccessToken200Response
22+
from urlr.models.create_access_token_request import CreateAccessTokenRequest
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/v1
27+
# See configuration.py for a list of all supported configuration parameters.
28+
configuration = urlr.Configuration(
29+
host = "https://urlr.me/api/v1"
30+
)
31+
32+
33+
# Enter a context with an instance of the API client
34+
with urlr.ApiClient(configuration) as api_client:
35+
# Create an instance of the API class
36+
api_instance = urlr.AccessTokensApi(api_client)
37+
create_access_token_request = urlr.CreateAccessTokenRequest() # CreateAccessTokenRequest | Your credentials (optional)
38+
39+
try:
40+
# Get an access token
41+
api_response = api_instance.create_access_token(create_access_token_request=create_access_token_request)
42+
print("The response of AccessTokensApi->create_access_token:\n")
43+
pprint(api_response)
44+
except Exception as e:
45+
print("Exception when calling AccessTokensApi->create_access_token: %s\n" % e)
46+
```
47+
48+
49+
50+
### Parameters
51+
52+
53+
Name | Type | Description | Notes
54+
------------- | ------------- | ------------- | -------------
55+
**create_access_token_request** | [**CreateAccessTokenRequest**](CreateAccessTokenRequest.md)| Your credentials | [optional]
56+
57+
### Return type
58+
59+
[**CreateAccessToken200Response**](CreateAccessToken200Response.md)
60+
61+
### Authorization
62+
63+
No authorization required
64+
65+
### HTTP request headers
66+
67+
- **Content-Type**: application/json
68+
- **Accept**: application/json
69+
70+
### HTTP response details
71+
72+
| Status code | Description | Response headers |
73+
|-------------|-------------|------------------|
74+
**200** | Access token | - |
75+
**401** | Error | - |
76+
77+
[[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)
78+
79+
# **refresh_access_token**
80+
> CreateAccessToken200Response refresh_access_token(refresh_access_token_request=refresh_access_token_request)
81+
82+
Refresh an access token
83+
84+
### Example
85+
86+
87+
```python
88+
import urlr
89+
from urlr.models.create_access_token200_response import CreateAccessToken200Response
90+
from urlr.models.refresh_access_token_request import RefreshAccessTokenRequest
91+
from urlr.rest import ApiException
92+
from pprint import pprint
93+
94+
# Defining the host is optional and defaults to https://urlr.me/api/v1
95+
# See configuration.py for a list of all supported configuration parameters.
96+
configuration = urlr.Configuration(
97+
host = "https://urlr.me/api/v1"
98+
)
99+
100+
101+
# Enter a context with an instance of the API client
102+
with urlr.ApiClient(configuration) as api_client:
103+
# Create an instance of the API class
104+
api_instance = urlr.AccessTokensApi(api_client)
105+
refresh_access_token_request = urlr.RefreshAccessTokenRequest() # RefreshAccessTokenRequest | Your credentials (optional)
106+
107+
try:
108+
# Refresh an access token
109+
api_response = api_instance.refresh_access_token(refresh_access_token_request=refresh_access_token_request)
110+
print("The response of AccessTokensApi->refresh_access_token:\n")
111+
pprint(api_response)
112+
except Exception as e:
113+
print("Exception when calling AccessTokensApi->refresh_access_token: %s\n" % e)
114+
```
115+
116+
117+
118+
### Parameters
119+
120+
121+
Name | Type | Description | Notes
122+
------------- | ------------- | ------------- | -------------
123+
**refresh_access_token_request** | [**RefreshAccessTokenRequest**](RefreshAccessTokenRequest.md)| Your credentials | [optional]
124+
125+
### Return type
126+
127+
[**CreateAccessToken200Response**](CreateAccessToken200Response.md)
128+
129+
### Authorization
130+
131+
No authorization required
132+
133+
### HTTP request headers
134+
135+
- **Content-Type**: application/json
136+
- **Accept**: application/json
137+
138+
### HTTP response details
139+
140+
| Status code | Description | Response headers |
141+
|-------------|-------------|------------------|
142+
**200** | Refreshed access token | - |
143+
**401** | Error | - |
144+
145+
[[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)
146+

0 commit comments

Comments
 (0)