YoLo Added a banner to the default admin page. Please have mercy on me =(
This commit is contained in:
parent
4f3edcceb0
commit
6c2cc20405
3 changed files with 70 additions and 2 deletions
|
@ -159,4 +159,7 @@ class AppController extends BaseController
|
||||||
|
|
||||||
return $response->withData(AppUser::collection($access));
|
return $response->withData(AppUser::collection($access));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ class Mail extends JsonResource
|
||||||
'created_at' => $this->created_at,
|
'created_at' => $this->created_at,
|
||||||
'updated_at' => $this->created_at,
|
'updated_at' => $this->created_at,
|
||||||
'status' => $this->status,
|
'status' => $this->status,
|
||||||
'primary' => $this->primary,
|
'primary' => (boolean)$this->primary,
|
||||||
'mail' => $this->mail
|
'mail' => $this->mail
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -308,6 +308,41 @@ paths:
|
||||||
msg:
|
msg:
|
||||||
type: "string"
|
type: "string"
|
||||||
example: "You need to login"
|
example: "You need to login"
|
||||||
|
/user/me/mail:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- "user"
|
||||||
|
summary: "Return Mail adddresses for te User"
|
||||||
|
description: ""
|
||||||
|
produces:
|
||||||
|
- "application/json"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "Found user and return informations"
|
||||||
|
schema:
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/Mail'
|
||||||
|
success:
|
||||||
|
type: "boolean"
|
||||||
|
example: true
|
||||||
|
msg:
|
||||||
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
401:
|
||||||
|
description: "Not logged in"
|
||||||
|
schema:
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
success:
|
||||||
|
type: "boolean"
|
||||||
|
example: false
|
||||||
|
msg:
|
||||||
|
type: "string"
|
||||||
|
example: "You need to login"
|
||||||
/account:
|
/account:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
@ -843,6 +878,36 @@ definitions:
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
example: false
|
example: false
|
||||||
description: "If the user is a admin Account"
|
description: "If the user is a admin Account"
|
||||||
|
Mail:
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
example: 18
|
||||||
|
created_at:
|
||||||
|
type: "string"
|
||||||
|
format: "DateTime"
|
||||||
|
example: "2019-07-17T13:37:40.000000Z"
|
||||||
|
updated_at:
|
||||||
|
type: "string"
|
||||||
|
format: "DateTime"
|
||||||
|
example: "2019-07-17T13:37:40.000000Z"
|
||||||
|
status:
|
||||||
|
type: "string"
|
||||||
|
enum:
|
||||||
|
- "valide"
|
||||||
|
- "waiting"
|
||||||
|
- "invalide"
|
||||||
|
primary:
|
||||||
|
type: boolean
|
||||||
|
description: "If this mail is the user primary mail"
|
||||||
|
example: true
|
||||||
|
mail:
|
||||||
|
type: string
|
||||||
|
format: mail
|
||||||
|
example: "mail@example.com"
|
||||||
|
|
||||||
AppForOwner:
|
AppForOwner:
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
|
|
Reference in a new issue