Skip to content

Create CRUD endpoints for OpenAiPrompt entity #138

@maximgorbatyuk

Description

@maximgorbatyuk

Recently the entity OpenAIPrompt was added which is representing data for AI settings. Then, Create, Read, Update, and Delete endpoint should be added within Admin section.

Acceptance criteria:

  • Controller AiPromptoController to be added. It should contain: Create endpoint, Search all prompts endpoint (non-paginated list), Update one entity, Delete entity
  • DTO OpenAiPromtDto to be added. It should contain all props from the database entity
  • Role demand: Admin
  • Base route: /api/admin/ai-prompts

Use existing code as an example

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions