mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-13 18:52:14 +01:00
add basic crud frontend for clients, tags and projects
This commit is contained in:
@@ -29,6 +29,8 @@ class ClientController extends Controller
|
||||
* @return ClientCollection<ClientResource>
|
||||
*
|
||||
* @throws AuthorizationException
|
||||
*
|
||||
* @operationId getClients
|
||||
*/
|
||||
public function index(Organization $organization): ClientCollection
|
||||
{
|
||||
@@ -46,6 +48,8 @@ class ClientController extends Controller
|
||||
* Create client
|
||||
*
|
||||
* @throws AuthorizationException
|
||||
*
|
||||
* @operationId createClient
|
||||
*/
|
||||
public function store(Organization $organization, TagStoreRequest $request): ClientResource
|
||||
{
|
||||
@@ -63,6 +67,8 @@ class ClientController extends Controller
|
||||
* Update client
|
||||
*
|
||||
* @throws AuthorizationException
|
||||
*
|
||||
* @operationId updateClient
|
||||
*/
|
||||
public function update(Organization $organization, Client $client, TagUpdateRequest $request): ClientResource
|
||||
{
|
||||
@@ -78,6 +84,8 @@ class ClientController extends Controller
|
||||
* Delete client
|
||||
*
|
||||
* @throws AuthorizationException
|
||||
*
|
||||
* @operationId deleteClient
|
||||
*/
|
||||
public function destroy(Organization $organization, Client $client): JsonResponse
|
||||
{
|
||||
|
||||
@@ -23,6 +23,8 @@ class MemberController extends Controller
|
||||
* @return MemberCollection<MemberResource>>
|
||||
*
|
||||
* @throws AuthorizationException
|
||||
*
|
||||
* @operationId getMembers
|
||||
*/
|
||||
public function index(Organization $organization, MemberIndexRequest $request): MemberCollection
|
||||
{
|
||||
@@ -38,6 +40,8 @@ class MemberController extends Controller
|
||||
* Invite a placeholder user to become a member of the organization
|
||||
*
|
||||
* @throws AuthorizationException|UserNotPlaceholderApiException
|
||||
*
|
||||
* @operationId invitePlaceholder
|
||||
*/
|
||||
public function invitePlaceholder(Organization $organization, User $user, Request $request): JsonResponse
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user