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

How can I add or change an item? #5

Open
openmartin opened this issue Sep 25, 2016 · 1 comment
Open

How can I add or change an item? #5

openmartin opened this issue Sep 25, 2016 · 1 comment

Comments

@openmartin
Copy link

/admin/api/books/book/

list items

/admin/api/books/book/1/

item detail

then how can i change or add an item?

@erdem
Copy link
Owner

erdem commented Sep 25, 2016

You can create an object but I didn't implement yet the update view. I am planning to implement all REST API view with Django generic views.

You post object data to list endpoint for create a new object.

Like:

POST
admin/api/books/book/

{
    "name": "blabla"
}

Thanks

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