# API: إنشاء فئة مع إضافة تفاصيل إضافية إلى الوصف

**URL:** <https://meta.discourse.org/t/api-create-a-category-but-append-add-to-description-more-details/129728>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [28 سبتمبر 2019، 11:18ص UTC](https://meta.discourse.org/t/api-create-a-category-but-append-add-to-description-more-details/129728 "2019-09-28T11:18:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)\
**Post date:** [16 نوفمبر 2021، 12:05م UTC](https://meta.discourse.org/t/api-create-a-category-but-append-add-to-description-more-details/129728/5 "2021-11-16T12:05:37Z")

</div>

إذا لم يتم توثيقه في مكان آخر، فإن البحث داخل ملفات المواصفات في مستودع discourse سيجيب على أشياء كهذه بفهم أساسي لكيفية عمل لغات البرمجة.

في هذه الحالة، توضح الأسطر التالية في مواصفات الفئة أن `description_text` مشتق من `description` ومتاح فورًا بعد تعيين `description`.

هذا يعني بالنسبة لي أن `description` هو السلسلة النصية الخام للوصف وعند تعيينها، يتم معالجتها وتعيينها إلى `description_text`. أو يمكن حساب `description_text` عند الوصول إليها ولكنني أشك في ذلك، وفي كلتا الحالتين `description` هو الذي يجب تعيينه.

> <https://github.com/discourse/discourse/blob/c4843fc1c18fc9fb077d61e59615f54c4735bb42/spec/models/category_spec.rb#L367-L374>

---

_[View the full topic](https://meta.discourse.org/t/api-create-a-category-but-append-add-to-description-more-details/129728)._
