-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api): Improve code style + API doc
- Loading branch information
Showing
3 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,17 @@ public function __construct(ContactRepository $contactRepository) | |
* summary="Create a contact", | ||
* tags={"Contact"}, | ||
* security={{"bearerAuth": {} }}, | ||
* @OA\RequestBody( | ||
* required=true, | ||
* description="Contact data", | ||
* @OA\JsonContent( | ||
* required={"contact_first_name", "lead_id", "contact_email", "contact_phone"}, | ||
* @OA\Property(property="contact_first_name", type="string", maxLength=50, example="John"), | ||
* @OA\Property(property="lead_id", type="integer", example=123), | ||
* @OA\Property(property="contact_email", type="string", maxLength=254, format="email", example="[email protected]"), | ||
* @OA\Property(property="contact_phone", type="string", maxLength=15, example="123-456-7890") | ||
* ), | ||
* ), | ||
* @OA\Response(response="400", description="Bad request: Please review required params"), | ||
* @OA\Response(response="201", description="Contact created successfully") | ||
* ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<?php | ||
|
||
const APP_VERSION = '3.7.4'; | ||
const APP_VERSION = '3.7.5'; |