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

ContentTypes API call #14

Open
Virako opened this issue Dec 27, 2018 · 0 comments
Open

ContentTypes API call #14

Virako opened this issue Dec 27, 2018 · 0 comments
Assignees
Milestone

Comments

@Virako
Copy link
Member

Virako commented Dec 27, 2018

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

@Virako Virako added this to the v1 milestone Dec 27, 2018
@rarellano rarellano self-assigned this Jan 8, 2019
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