Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Разработка DTO для вывода данных моделей через Web API #10

Open
EvilLord666 opened this issue Apr 22, 2021 · 0 comments
Assignees

Comments

@EvilLord666
Copy link
Owner

EvilLord666 commented Apr 22, 2021

Для каждого entity-класса за исключением базовой entity необходимо реализовать набор DTO для последующего использования в контроллерах Web API:

  • AccountEntity
  • BrokerTypeEntity
  • BrokerEntity
  • MessageStatusEntity
  • MessageEntity

Необходимо в пакете DTO добавить класс DtoTags для того, чтобы форматировать имена полей JSON в формате undderscore, например:

{
    "broker_type": {
        "id": 1,
        "name": "kafka"
    }
}
@EvilLord666 EvilLord666 changed the title Разработка DTO Разработка DTO для вывода данных моделей Apr 22, 2021
@EvilLord666 EvilLord666 changed the title Разработка DTO для вывода данных моделей Разработка DTO для вывода данных моделей через Web API Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants