@@ 26-50 (lines=25) @@ | ||
23 | /** |
|
24 | * Contact Resource. |
|
25 | */ |
|
26 | class ContactResource extends AbstractResource |
|
27 | { |
|
28 | use GetAllTrait; |
|
29 | use GetByIdTrait; |
|
30 | use GetByIdsTrait; |
|
31 | use UpdateTrait; |
|
32 | ||
33 | /** |
|
34 | * Return connection array ResourceMethod => RequestPathFormat. |
|
35 | * |
|
36 | * @see \Zibios\WrikePhpLibrary\Enum\Api\ResourceMethodEnum |
|
37 | * @see \Zibios\WrikePhpLibrary\Enum\Api\RequestPathFormatEnum |
|
38 | * |
|
39 | * @return array |
|
40 | */ |
|
41 | protected function getResourceMethodConfiguration(): array |
|
42 | { |
|
43 | return [ |
|
44 | ResourceMethodEnum::GET_ALL => RequestPathFormatEnum::CONTACTS, |
|
45 | ResourceMethodEnum::GET_BY_ID => RequestPathFormatEnum::CONTACTS_BY_ID, |
|
46 | ResourceMethodEnum::GET_BY_IDS => RequestPathFormatEnum::CONTACTS_BY_ID, |
|
47 | ResourceMethodEnum::UPDATE => RequestPathFormatEnum::CONTACTS_BY_ID, |
|
48 | ]; |
|
49 | } |
|
50 | } |
|
51 |
@@ 26-50 (lines=25) @@ | ||
23 | /** |
|
24 | * Invitation Resource. |
|
25 | */ |
|
26 | class InvitationResource extends AbstractResource |
|
27 | { |
|
28 | use GetAllTrait; |
|
29 | use CreateTrait; |
|
30 | use UpdateTrait; |
|
31 | use DeleteTrait; |
|
32 | ||
33 | /** |
|
34 | * Return connection array ResourceMethod => RequestPathFormat. |
|
35 | * |
|
36 | * @see \Zibios\WrikePhpLibrary\Enum\Api\ResourceMethodEnum |
|
37 | * @see \Zibios\WrikePhpLibrary\Enum\Api\RequestPathFormatEnum |
|
38 | * |
|
39 | * @return array |
|
40 | */ |
|
41 | protected function getResourceMethodConfiguration(): array |
|
42 | { |
|
43 | return [ |
|
44 | ResourceMethodEnum::GET_ALL => RequestPathFormatEnum::INVITATIONS, |
|
45 | ResourceMethodEnum::CREATE => RequestPathFormatEnum::INVITATIONS, |
|
46 | ResourceMethodEnum::UPDATE => RequestPathFormatEnum::INVITATIONS_BY_ID, |
|
47 | ResourceMethodEnum::DELETE => RequestPathFormatEnum::INVITATIONS_BY_ID, |
|
48 | ]; |
|
49 | } |
|
50 | } |
|
51 |