Skip to content

Commit 3e6b03b

Browse files
committed
1.1.0
1 parent 79dfc52 commit 3e6b03b

8 files changed

Lines changed: 91 additions & 22 deletions

File tree

clients/urlr-javascript/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.2] - 2024-02-01
410

511
- Fix two return types in reduce_link200_response

clients/urlr-php/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

clients/urlr-python/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

openapi-generator/config-javascript.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
npmName: urlr-js
2-
npmVersion: 1.0.2
2+
npmVersion: 1.1.0
33
gitHost: github.com
44
gitUserId: urlr
55
gitRepoId: urlr-javascript

openapi-generator/config-php.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
packageName: URLR
22
composerPackageName: urlr/urlr-php
3-
artifactVersion: 1.0.1
3+
artifactVersion: 1.1.0
44
invokerPackage: URLR
55
variableNamingConvention: camelCase
66
developerOrganization: URLR

openapi-generator/config-python.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
projectName: URLR
22
packageName: urlr
3-
packageVersion: 1.0.1
3+
packageVersion: 1.1.0
44
infoName: URLR
55
infoEmail: contact@urlr.me
66
gitUserId: urlr

openapi.yaml

Lines changed: 69 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ info:
1010
license:
1111
name: 'All rights reserved'
1212
url: 'https://urlr.me/en/legal-notice'
13-
version: '0.2'
13+
version: '0.3'
1414
servers:
1515
-
1616
url: 'https://urlr.me/api'
@@ -31,8 +31,10 @@ paths:
3131
- 'username, password'
3232
properties:
3333
username:
34+
description: Email
3435
type: string
3536
password:
37+
description: Password
3638
type: string
3739
type: object
3840
responses:
@@ -57,10 +59,10 @@ paths:
5759
post:
5860
tags:
5961
- Link
60-
summary: 'Reduce a link'
62+
summary: 'Shorten a link'
6163
operationId: reduceLink
6264
requestBody:
63-
description: 'Infos of the link to reduce'
65+
description: 'Info of the link to shorten'
6466
content:
6567
application/json:
6668
schema:
@@ -69,23 +71,23 @@ paths:
6971
- team
7072
properties:
7173
url:
72-
description: 'The url to reduce'
74+
description: 'URL to shorten'
7375
type: string
7476
team:
75-
description: 'Team id (displayed on dashboard)'
77+
description: 'Team ID (displayed on dashboard)'
7678
type: string
7779
folder:
78-
description: 'Folder id (displayed on dashboard)'
80+
description: 'Folder ID (displayed on dashboard)'
7981
type: string
8082
code:
81-
description: 'Custom code'
83+
description: 'Custom short code'
8284
type: string
8385
pattern: '^[a-zA-Z0-9!-]{3,50}$'
8486
label:
85-
description: 'Link label'
87+
description: Label
8688
type: string
8789
password:
88-
description: 'Link password'
90+
description: Password
8991
type: string
9092
expired_at:
9193
description: 'Expiration date'
@@ -98,12 +100,12 @@ paths:
98100
application/json:
99101
schema:
100102
properties:
101-
url: { description: 'Input url to reduce', type: string }
103+
url: { description: 'Original URL', type: string }
102104
expired_at: { description: 'Expiration date', type: string }
103-
team: { description: 'Team id (displayed on dashboard)', type: integer }
104-
folder: { description: 'Folder id (displayed on dashboard)', type: integer }
105-
url_code: { type: string, example: xMs5c }
106-
domain: { type: string, example: urlr.me }
105+
team: { description: 'Team ID (displayed on dashboard)', type: integer }
106+
folder: { description: 'Folder ID (displayed on dashboard)', type: integer }
107+
url_code: { description: 'Short code', type: string, example: xMs5c }
108+
domain: { description: Domain, type: string, example: urlr.me }
107109
code: { description: 'HTTP status code', type: integer, example: 200 }
108110
type: object
109111
'400':
@@ -113,7 +115,7 @@ paths:
113115
schema:
114116
properties:
115117
code: { description: 'HTTP status code', type: integer, example: 401 }
116-
error: { type: integer, example: -1 }
118+
error: { description: 'Error code', type: integer, example: -1 }
117119
message: { description: 'Message describing the error', type: string }
118120
type: object
119121
security:
@@ -134,7 +136,7 @@ paths:
134136
- code
135137
properties:
136138
code:
137-
description: 'The short code of the url'
139+
description: 'The short code of the URL'
138140
type: string
139141
pattern: '^[a-zA-Z0-9!-]{3,50}$'
140142
from:
@@ -156,8 +158,8 @@ paths:
156158
application/json:
157159
schema:
158160
properties:
159-
clicks: { type: integer, example: 32 }
160-
uniqueClicks: { type: integer, example: 51 }
161+
clicks: { description: Clicks, type: integer, example: 32 }
162+
uniqueClicks: { description: 'Unique clicks', type: integer, example: 51 }
161163
type: object
162164
'400':
163165
description: 'An error occurred'
@@ -171,6 +173,55 @@ paths:
171173
security:
172174
-
173175
bearerAuth: []
176+
/team:
177+
get:
178+
tags:
179+
- Team
180+
summary: 'Get teams of user'
181+
operationId: team
182+
responses:
183+
'200':
184+
description: 'Teams of user'
185+
content:
186+
application/json:
187+
schema:
188+
properties:
189+
teams: { type: array, items: { properties: { id: { description: 'Team ID', type: integer, example: 131 }, name: { description: 'Team name', type: string, example: 'the best team' } }, type: object } }
190+
type: object
191+
security:
192+
-
193+
bearerAuth: []
194+
/folder:
195+
get:
196+
tags:
197+
- Folder
198+
summary: 'Get folders of team'
199+
operationId: folder
200+
requestBody:
201+
description: 'Infos to provide to get folders of team'
202+
content:
203+
application/json:
204+
schema:
205+
required:
206+
- team
207+
properties:
208+
team:
209+
description: 'Team ID (displayed on dashboard)'
210+
type: integer
211+
example: 123
212+
type: object
213+
responses:
214+
'200':
215+
description: 'Folders of team'
216+
content:
217+
application/json:
218+
schema:
219+
properties:
220+
folders: { type: array, items: { properties: { id: { description: 'Folder ID', type: integer, example: 123 }, name: { description: 'Folder name', type: string, example: folder-campaign-google-ads } }, type: object } }
221+
type: object
222+
security:
223+
-
224+
bearerAuth: []
174225
components:
175226
securitySchemes:
176227
bearerAuth:

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
33
"spaces": 2,
44
"generator-cli": {
5-
"version": "7.2.0"
5+
"version": "7.3.0"
66
}
77
}

0 commit comments

Comments
 (0)