NameL3ss

rdf endpoints

Nov 9th, 2023 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. create customer
  2. localhost:3000/api/v1/rdf/nodes/customers
  3. {
  4. "customer": {
  5. "customer_uuid": 9000
  6. }
  7. }
  8.  
  9.  
  10. create contract
  11. localhost:3000/api/v1/rdf/nodes/contracts
  12. {
  13. "contract": {
  14. "customer_uuid": 9000,
  15. "uuid": 9000
  16. }
  17.  
  18. }
  19.  
  20. create workflow_request_template
  21. localhost:3000/api/v1/rdf/nodes/workflow_request_templates
  22. {
  23. "workflow_request_template": {
  24. "customer_uuid": 9000,
  25. "uuid": 9000
  26. }
  27.  
  28. }
  29.  
  30. create workflow_request
  31. localhost:3000/api/v1/rdf/nodes/workflow_requests
  32. {
  33. "workflow_request": {
  34. "workflow_request_template_uuid": 9000,
  35. "contract_uuid": 9000,
  36. "uuid": 9000
  37. }
  38.  
  39. }
  40.  
  41. create ontology
  42. localhost:3000/api/v1/rdf/primitives/ontologies
  43. {
  44. "primitive": {
  45. "customer_uuid": "9000",
  46. "subclass_name": "Number",
  47. "label": "Metros Cubicos",
  48. "comment": "prueba number"
  49. }
  50. }
  51.  
  52. customer ontologies
  53. http://localhost:3000/api/v1/rdf/primitives/ontologies?customer_uuid=9000
  54.  
  55. show ontology
  56. http://localhost:3000/api/v1/rdf/primitives/ontologies/Metadatum-fdbf3711-d962-44d7-a4bc-eb0c4cfb0ddb?customer_uuid=9000
  57.  
  58. remove ontology
  59. DELETE
  60. localhost:3000/api/v1/rdf/primitives/ontologies/Metadatum-cacaa7ef-abf9-4351-804a-58c9c4cd3d5a
  61.  
  62. create instance
  63. localhost:3000/api/v1/rdf/primitives/instances
  64. {
  65. "instance": {
  66. "workflow_request_uuid": 9000,
  67. "customer_uuid": 9000,
  68. "class_name": "Metadatum-7a2d30f2-0d85-408b-a236-fee8ce6ae46d",
  69. "value": "600"
  70. }
  71.  
  72. }
  73.  
  74.  
  75. customer instances workflow_request
  76. http://localhost:3000/api/v1/rdf/primitives/instances?customer_uuid=9000&workflow_request_uuid=9000
  77.  
  78. show instance
  79. http://localhost:3000/api/v1/rdf/primitives/instances/Metadatum-a3c24003-e837-4de7-9bab-9920cf478150-a869a55c-779e-4269-b467-900ce535c74d
  80.  
  81. remove instance
  82. DELETE
  83. http://localhost:3000/api/v1/rdf/primitives/instances?customer_uuid=666&workflow_request_uuid=666
  84.  
  85.  
  86.  
Advertisement
Add Comment
Please, Sign In to add comment