items.http 683 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #字典项
  2. ##添加字典项
  3. POST http://localhost:7001/items/T01/create HTTP/1.1
  4. content-type: application/json
  5. Accept: application/json
  6. {
  7. "code": "1",
  8. "name": "挂起"
  9. }
  10. ###
  11. ##删除字典数据
  12. POST http://localhost:7001/items/T01/delete?code=2 HTTP/1.1
  13. content-type: application/json
  14. Accept: application/json
  15. ###
  16. # update
  17. POST http://localhost:7001/items/T01/update?code=1 HTTP/1.1
  18. content-type: application/json
  19. Accept: application/json
  20. {
  21. "name": "挂起",
  22. "order": 10
  23. }
  24. ###
  25. # fetch
  26. GET http://localhost:7001/items/T01/fetch?code=2 HTTP/1.1
  27. Accept: application/json
  28. ###
  29. # list
  30. GET http://localhost:7001/items/T01/list HTTP/1.1
  31. Accept: application/json