Skip to content

ContentTypes API call #14

@Virako

Description

@Virako

We need API call for obtain a some ContentTypes where key is a ContentType pk and value is a name of model.

GET: content/types/

return:

{
  15: 'item',
  23: 'knowledge',
  24: 'player',
  ...
}

We only need 5 elements: Player, NPC, Item, Knowledge and Rol. This call will be necessary when are creating a new Content from frontend.

ContentType is a django model where are saved all django models:

from django.contrib.contenttypes.models import ContentType

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions