You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/api/apiblueprint.apib
+43-2Lines changed: 43 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,13 @@ The API uses conventional HTTP response codes to indicate the success or failure
43
43
# Data Structures
44
44
45
45
<!-- include(dataStructures/errors.apib) -->
46
+
<!-- include(dataStructures/auth.apib) -->
46
47
<!-- include(dataStructures/users.apib) -->
47
48
<!-- include(dataStructures/roles.apib) -->
48
49
<!-- include(dataStructures/permissions.apib) -->
49
50
<!-- include(dataStructures/assets.apib) -->
50
51
52
+
<!-- include(routes/auth.apib) -->
51
53
<!-- include(routes/users.apib) -->
52
54
<!-- include(routes/assets.apib) -->
53
55
###Asset Object (object)
@@ -59,7 +61,12 @@ The API uses conventional HTTP response codes to indicate the success or failure
59
61
+ full: `https://laravelapi.test/api/assets/0c244c51-0a3b-4b86-829a-ee161c2f966f/render` (string) - The asset link for render full size
60
62
+ thumb: `https://laravelapi.test/api/assets/0c244c51-0a3b-4b86-829a-ee161c2f966f/render?width=200&height=200` (string) - The asset link for render thumb size
61
63
+ created_at : `1997-07-16T19:20:30+01:00` (string) - Date in format iso 8601
62
-
## Error 404 (object)
64
+
### Registration input (object)
65
+
- name: `Jose Fonseca`(string, required) - The name of the user
66
+
- email: `[email protected]` (string, required) - The email of the user
67
+
- password: `Password123**` (string, required) - The password of the user
68
+
- password_confirmation: `Password123**` (string, required) - The password confirmation of the user
69
+
##Error 404 (object)
63
70
- message: `404 Not found` (string)
64
71
- status_code: 404 (number) `status code number`
65
72
@@ -216,7 +223,41 @@ In the body of the requests you can send the raw binary data in base 64 encoded
216
223
{
217
224
"code": 413,
218
225
"message": "The body is too large"
219
-
}
226
+
}# Group Auth
227
+
228
+
The auth API will allow you to work with the users registration and password management.
229
+
230
+
##Register [/api/register]
231
+
Use this endpoint to register a new user from the client consuming the API.
232
+
233
+
###Register user [POST]
234
+
This endpoint will allow you to handle the user registration in the API
235
+
236
+
+ Request (application/json)
237
+
238
+
+ Attributes (Registration input)
239
+
240
+
+ Response 201 (application/json)
241
+
242
+
+ Attributes
243
+
+ data (User Object)
244
+
245
+
+ Response 422 (application/json)
246
+
247
+
+ Attributes (Error 422)
248
+
249
+
+ Response 401 (application/json)
250
+
251
+
+ Attributes (Error 401)
252
+
253
+
+ Response 403 (application/json)
254
+
255
+
+ Attributes (Error 403)
256
+
257
+
+ Response 404 (application/json)
258
+
259
+
+ Attributes (Error 404)
260
+
220
261
##Permissions resource [/api/permissions]
221
262
It requires your user to have permissions to fetch, create, update or delete roles in the system depending on the request you want to make
$this->assertEquals('{"message":"The given data was invalid.","status_code":422,"errors":{"email":["The email field is required."],"password":["The password field is required."]}}', $response->getContent());
0 commit comments