From 4b6ec6346186452acc7adea8911c9017fb77b414 Mon Sep 17 00:00:00 2001
From: Rebecca Wheeler <rebecca.wheeler@wisc.edu>
Date: Tue, 25 Mar 2025 09:41:51 -0500
Subject: [PATCH] Edit POST_cert.json

---
 EI-IICS-Team/SSN_POC/POST_cert.json | 70 ++++++++++++++++++++---------
 1 file changed, 48 insertions(+), 22 deletions(-)

diff --git a/EI-IICS-Team/SSN_POC/POST_cert.json b/EI-IICS-Team/SSN_POC/POST_cert.json
index 25fcdf3..b871a34 100644
--- a/EI-IICS-Team/SSN_POC/POST_cert.json
+++ b/EI-IICS-Team/SSN_POC/POST_cert.json
@@ -14,31 +14,26 @@
   "paths" : {
     "/certificates" : {
       "post" : {
-        "tags" : [ "POST_cert" ],
+        "tags" : [ "Post_Cert" ],
         "summary" : null,
         "description" : null,
-        "operationId" : "POST_cert",
+        "operationId" : "Post_Cert",
         "produces" : [ "application/json" ],
         "consumes" : [ "application/json" ],
         "parameters" : [ {
-          "name" : {
-             "data": {
-              "type": "certificates",
-              "attributes": {
-                "certificate": "CertPayloadHere"
-    }
-  }
-},
+          "name" : "body",
           "in" : "body",
           "description" : null,
           "required" : false,
-          "type" : "string"
-} ],
+          "schema" : {
+            "$ref" : "#/definitions/Post_Cert_Request##body"
+          }
+        } ],
         "responses" : {
           "200" : {
             "description" : "successful operation",
             "schema" : {
-              "$ref" : "#/definitions/POST_cert"
+              "$ref" : "#/definitions/Post_Cert"
             }
           }
         }
@@ -46,7 +41,7 @@
     }
   },
   "definitions" : {
-    "POST_cert##data##attributes" : {
+    "Post_Cert##data##attributes" : {
       "properties" : {
         "certificate" : {
           "type" : "string"
@@ -62,43 +57,74 @@
         }
       }
     },
-    "POST_cert##data##links" : {
+    "Post_Cert##data##links" : {
       "properties" : {
         "self" : {
           "type" : "string"
         }
       }
     },
-    "POST_cert##data" : {
+    "Post_Cert##data" : {
       "properties" : {
         "attributes" : {
-          "$ref" : "#/definitions/POST_cert##data##attributes"
+          "$ref" : "#/definitions/Post_Cert##data##attributes"
         },
         "id" : {
           "type" : "string"
         },
         "links" : {
-          "$ref" : "#/definitions/POST_cert##data##links"
+          "$ref" : "#/definitions/Post_Cert##data##links"
         },
         "type" : {
           "type" : "string"
         }
       }
     },
-    "POST_cert##links" : {
+    "Post_Cert##links" : {
       "properties" : {
         "self" : {
           "type" : "string"
         }
       }
     },
-    "POST_cert" : {
+    "Post_Cert" : {
       "properties" : {
         "data" : {
-          "$ref" : "#/definitions/POST_cert##data"
+          "$ref" : "#/definitions/Post_Cert##data"
         },
         "links" : {
-          "$ref" : "#/definitions/POST_cert##links"
+          "$ref" : "#/definitions/Post_Cert##links"
+        }
+      }
+    },
+    "Post_Cert_Request##body##data##attributes" : {
+      "properties" : {
+        "certificate" : {
+          "type" : "string"
+        }
+      }
+    },
+    "Post_Cert_Request##body##data" : {
+      "properties" : {
+        "type" : {
+          "type" : "string"
+        },
+        "attributes" : {
+          "$ref" : "#/definitions/Post_Cert_Request##body##data##attributes"
+        }
+      }
+    },
+    "Post_Cert_Request##body" : {
+      "properties" : {
+        "data" : {
+          "$ref" : "#/definitions/Post_Cert_Request##body##data"
+        }
+      }
+    },
+    "Post_Cert_Request" : {
+      "properties" : {
+        "body" : {
+          "$ref" : "#/definitions/Post_Cert_Request##body"
         }
       }
     }
-- 
GitLab