Add plural_name field to /v1/types

fixes #10038
This commit is contained in:
Gunnar Beutner 2015-08-29 12:05:44 +02:00
parent f1e37c4e72
commit 6705853e33
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ bool TypeQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& requ
Dictionary::Ptr resultAttrs = new Dictionary(); Dictionary::Ptr resultAttrs = new Dictionary();
result1->Set("name", obj->GetName()); result1->Set("name", obj->GetName());
result1->Set("plural_name", obj->GetPluralName());
if (obj->GetBaseType()) if (obj->GetBaseType())
result1->Set("base", obj->GetBaseType()->GetName()); result1->Set("base", obj->GetBaseType()->GetName());
result1->Set("abstract", obj->IsAbstract()); result1->Set("abstract", obj->IsAbstract());