-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Expand file tree
/
Copy pathUserApiInterface.php
More file actions
192 lines (178 loc) · 5.15 KB
/
UserApiInterface.php
File metadata and controls
192 lines (178 loc) · 5.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?php
/**
* UserApiInterface
*
* PHP version 8.1.1
*
* @category Class
* @package OpenAPI\Server
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
namespace OpenAPI\Server\Api;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use OpenAPI\Server\Model\User;
/**
* UserApiInterface Interface Doc Comment
*
* @category Interface
* @package OpenAPI\Server\Api
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
interface UserApiInterface
{
/**
* Sets authentication method api_key
*
* @param string|null $value Value of the api_key authentication method.
*
* @return void
*/
public function setapi_key(?string $value): void;
/**
* Operation createUser
*
* Create user
*
* @param User $user Created user object (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*/
public function createUser(
User $user,
int &$responseCode,
array &$responseHeaders
): void;
/**
* Operation createUsersWithArrayInput
*
* Creates list of users with given input array
*
* @param array $user List of user object (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*/
public function createUsersWithArrayInput(
array $user,
int &$responseCode,
array &$responseHeaders
): void;
/**
* Operation createUsersWithListInput
*
* Creates list of users with given input array
*
* @param array $user List of user object (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*/
public function createUsersWithListInput(
array $user,
int &$responseCode,
array &$responseHeaders
): void;
/**
* Operation deleteUser
*
* Delete user
*
* @param string $username The name that needs to be deleted (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*/
public function deleteUser(
string $username,
int &$responseCode,
array &$responseHeaders
): void;
/**
* Operation getUserByName
*
* Get user by user name
*
* @param string $username The name that needs to be fetched. Use user1 for testing. (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return array|object|null
*/
public function getUserByName(
string $username,
int &$responseCode,
array &$responseHeaders
): array|object|null;
/**
* Operation loginUser
*
* Logs user into the system
*
* @param string $username The user name for login (required)
* @param string $password The password for login in clear text (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return string
*/
public function loginUser(
string $username,
string $password,
int &$responseCode,
array &$responseHeaders
): string;
/**
* Operation logoutUser
*
* Logs out current logged in user session
*
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*/
public function logoutUser(
int &$responseCode,
array &$responseHeaders
): void;
/**
* Operation updateUser
*
* Updated user
*
* @param string $username name that need to be deleted (required)
* @param User $user Updated user object (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*/
public function updateUser(
string $username,
User $user,
int &$responseCode,
array &$responseHeaders
): void;
}