mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-18 05:02:14 +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
|
* @throws AuthorizationException
|
||||||
*/
|
*/
|
||||||
public function updateMultiple(Organization $organization, TimeEntryUpdateMultipleRequest $request): JsonResponse
|
public function updateMultiple(Organization $organization, TimeEntryUpdateMultipleRequest $request): JsonResponse
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ class ClientUpdateRequest extends FormRequest
|
|||||||
public function rules(): array
|
public function rules(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
// Name of the client
|
||||||
'name' => [
|
'name' => [
|
||||||
'required',
|
'required',
|
||||||
'string',
|
'string',
|
||||||
@@ -33,7 +34,7 @@ class ClientUpdateRequest extends FormRequest
|
|||||||
(new UniqueEloquent(Client::class, 'name', function (Builder $builder): Builder {
|
(new UniqueEloquent(Client::class, 'name', function (Builder $builder): Builder {
|
||||||
/** @var Builder<Client> $builder */
|
/** @var Builder<Client> $builder */
|
||||||
return $builder->whereBelongsTo($this->organization, 'organization');
|
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' => [
|
'is_archived' => [
|
||||||
'boolean',
|
'boolean',
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class ProjectUpdateRequest extends FormRequest
|
|||||||
(new UniqueEloquent(Project::class, 'name', function (Builder $builder): Builder {
|
(new UniqueEloquent(Project::class, 'name', function (Builder $builder): Builder {
|
||||||
/** @var Builder<Project> $builder */
|
/** @var Builder<Project> $builder */
|
||||||
return $builder->whereBelongsTo($this->organization, 'organization');
|
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' => [
|
'color' => [
|
||||||
'required',
|
'required',
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class TagUpdateRequest extends FormRequest
|
|||||||
(new UniqueEloquent(Tag::class, 'name', function (Builder $builder): Builder {
|
(new UniqueEloquent(Tag::class, 'name', function (Builder $builder): Builder {
|
||||||
/** @var Builder<Tag> $builder */
|
/** @var Builder<Tag> $builder */
|
||||||
return $builder->whereBelongsTo($this->organization, 'organization');
|
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 {
|
(new UniqueEloquent(Task::class, 'name', function (Builder $builder): Builder {
|
||||||
/** @var Builder<Task> $builder */
|
/** @var Builder<Task> $builder */
|
||||||
return $builder->where('project_id', '=', $this->task->project_id);
|
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' => [
|
'is_done' => [
|
||||||
'boolean',
|
'boolean',
|
||||||
|
|||||||
Reference in New Issue
Block a user