mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
Fixed api docs
This commit is contained in:
committed by
Gregor Vostrak
parent
de1accba4a
commit
c3a7ef7585
@@ -263,6 +263,10 @@ class TimeEntryController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Update multiple time entries
|
||||
*
|
||||
* @operationId updateMultipleTimeEntries
|
||||
*
|
||||
* @throws AuthorizationException
|
||||
*/
|
||||
public function updateMultiple(Organization $organization, TimeEntryUpdateMultipleRequest $request): JsonResponse
|
||||
|
||||
@@ -25,6 +25,7 @@ class ClientUpdateRequest extends FormRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
// Name of the client
|
||||
'name' => [
|
||||
'required',
|
||||
'string',
|
||||
@@ -33,7 +34,7 @@ class ClientUpdateRequest extends FormRequest
|
||||
(new UniqueEloquent(Client::class, 'name', function (Builder $builder): Builder {
|
||||
/** @var Builder<Client> $builder */
|
||||
return $builder->whereBelongsTo($this->organization, 'organization');
|
||||
}))->ignore($this->client->getKey())->withCustomTranslation('validation.client_name_already_exists'),
|
||||
}))->ignore($this->client?->getKey())->withCustomTranslation('validation.client_name_already_exists'),
|
||||
],
|
||||
'is_archived' => [
|
||||
'boolean',
|
||||
|
||||
@@ -35,7 +35,7 @@ class ProjectUpdateRequest extends FormRequest
|
||||
(new UniqueEloquent(Project::class, 'name', function (Builder $builder): Builder {
|
||||
/** @var Builder<Project> $builder */
|
||||
return $builder->whereBelongsTo($this->organization, 'organization');
|
||||
}))->ignore($this->project->getKey())->withCustomTranslation('validation.project_name_already_exists'),
|
||||
}))->ignore($this->project?->getKey())->withCustomTranslation('validation.project_name_already_exists'),
|
||||
],
|
||||
'color' => [
|
||||
'required',
|
||||
|
||||
@@ -33,7 +33,7 @@ class TagUpdateRequest extends FormRequest
|
||||
(new UniqueEloquent(Tag::class, 'name', function (Builder $builder): Builder {
|
||||
/** @var Builder<Tag> $builder */
|
||||
return $builder->whereBelongsTo($this->organization, 'organization');
|
||||
}))->ignore($this->tag->getKey())->withCustomTranslation('validation.tag_name_already_exists'),
|
||||
}))->ignore($this->tag?->getKey())->withCustomTranslation('validation.tag_name_already_exists'),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ class TaskUpdateRequest extends FormRequest
|
||||
(new UniqueEloquent(Task::class, 'name', function (Builder $builder): Builder {
|
||||
/** @var Builder<Task> $builder */
|
||||
return $builder->where('project_id', '=', $this->task->project_id);
|
||||
}))->ignore($this->task->getKey())->withCustomTranslation('validation.task_name_already_exists'),
|
||||
}))->ignore($this->task?->getKey())->withCustomTranslation('validation.task_name_already_exists'),
|
||||
],
|
||||
'is_done' => [
|
||||
'boolean',
|
||||
|
||||
Reference in New Issue
Block a user