Skip to content

Commit 2d832e2

Browse files
committed
More fixes of the gitea swagger api
See go-gitea/gitea#4845
1 parent 4200ed2 commit 2d832e2

File tree

88 files changed

+892
-636
lines changed

Some content is hidden

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

88 files changed

+892
-636
lines changed

docs/AdminApi.md

+14-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Method | HTTP request | Description
1515

1616
<a name="adminCreateOrg"></a>
1717
# **adminCreateOrg**
18-
> Organization adminCreateOrg(username)
18+
> Organization adminCreateOrg(username, organization)
1919
2020
Create an organization
2121

@@ -67,8 +67,9 @@ Token.setApiKey("YOUR API KEY");
6767

6868
AdminApi apiInstance = new AdminApi();
6969
String username = "username_example"; // String | username of the user that will own the created organization
70+
CreateOrgOption organization = new CreateOrgOption(); // CreateOrgOption |
7071
try {
71-
Organization result = apiInstance.adminCreateOrg(username);
72+
Organization result = apiInstance.adminCreateOrg(username, organization);
7273
System.out.println(result);
7374
} catch (ApiException e) {
7475
System.err.println("Exception when calling AdminApi#adminCreateOrg");
@@ -81,6 +82,7 @@ try {
8182
Name | Type | Description | Notes
8283
------------- | ------------- | ------------- | -------------
8384
**username** | **String**| username of the user that will own the created organization |
85+
**organization** | [**CreateOrgOption**](CreateOrgOption.md)| |
8486

8587
### Return type
8688

@@ -97,7 +99,7 @@ Name | Type | Description | Notes
9799

98100
<a name="adminCreatePublicKey"></a>
99101
# **adminCreatePublicKey**
100-
> PublicKey adminCreatePublicKey(username)
102+
> PublicKey adminCreatePublicKey(username, key)
101103
102104
Add a public key on behalf of a user
103105

@@ -149,8 +151,9 @@ Token.setApiKey("YOUR API KEY");
149151

150152
AdminApi apiInstance = new AdminApi();
151153
String username = "username_example"; // String | username of the user
154+
CreateKeyOption key = new CreateKeyOption(); // CreateKeyOption |
152155
try {
153-
PublicKey result = apiInstance.adminCreatePublicKey(username);
156+
PublicKey result = apiInstance.adminCreatePublicKey(username, key);
154157
System.out.println(result);
155158
} catch (ApiException e) {
156159
System.err.println("Exception when calling AdminApi#adminCreatePublicKey");
@@ -163,6 +166,7 @@ try {
163166
Name | Type | Description | Notes
164167
------------- | ------------- | ------------- | -------------
165168
**username** | **String**| username of the user |
169+
**key** | [**CreateKeyOption**](CreateKeyOption.md)| | [optional]
166170

167171
### Return type
168172

@@ -179,7 +183,7 @@ Name | Type | Description | Notes
179183

180184
<a name="adminCreateRepo"></a>
181185
# **adminCreateRepo**
182-
> Repository adminCreateRepo(username)
186+
> Repository adminCreateRepo(username, repository)
183187
184188
Create a repository on behalf a user
185189

@@ -231,8 +235,9 @@ Token.setApiKey("YOUR API KEY");
231235

232236
AdminApi apiInstance = new AdminApi();
233237
String username = "username_example"; // String | username of the user. This user will own the created repository
238+
CreateRepoOption repository = new CreateRepoOption(); // CreateRepoOption |
234239
try {
235-
Repository result = apiInstance.adminCreateRepo(username);
240+
Repository result = apiInstance.adminCreateRepo(username, repository);
236241
System.out.println(result);
237242
} catch (ApiException e) {
238243
System.err.println("Exception when calling AdminApi#adminCreateRepo");
@@ -245,6 +250,7 @@ try {
245250
Name | Type | Description | Notes
246251
------------- | ------------- | ------------- | -------------
247252
**username** | **String**| username of the user. This user will own the created repository |
253+
**repository** | [**CreateRepoOption**](CreateRepoOption.md)| |
248254

249255
### Return type
250256

@@ -476,7 +482,7 @@ Token.setApiKey("YOUR API KEY");
476482

477483
AdminApi apiInstance = new AdminApi();
478484
String username = "username_example"; // String | username of user
479-
Integer id = 56; // Integer | id of the key to delete
485+
Long id = 789L; // Long | id of the key to delete
480486
try {
481487
apiInstance.adminDeleteUserPublicKey(username, id);
482488
} catch (ApiException e) {
@@ -490,7 +496,7 @@ try {
490496
Name | Type | Description | Notes
491497
------------- | ------------- | ------------- | -------------
492498
**username** | **String**| username of user |
493-
**id** | **Integer**| id of the key to delete |
499+
**id** | **Long**| id of the key to delete |
494500

495501
### Return type
496502

0 commit comments

Comments
 (0)