get: curl http://127.0.0.1:8000/op/
create: curl -X POST http://127.0.0.1:8000/op/ -d '{"name": "op1", "login": "1111", "password": "2222"}' -H "Content-Type: application/json"
retrieve: curl http://127.0.0.1:8000/op/1
update: curl -X PUT http://127.0.0.1:8000/op/1 -d '{"name": "op1", "login": "newlogin", "password": "newpass"}' -H "Content-Type: application/json"
-
Notifications
You must be signed in to change notification settings - Fork 1
lonli078/django-rest-demo
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.