Downloadable json and yaml files, rendered example values 10/8810/1
authorhalil.cakal <halil.cakal@est.tech>
Tue, 26 Jul 2022 08:17:00 +0000 (09:17 +0100)
committerhalil.cakal <halil.cakal@est.tech>
Tue, 26 Jul 2022 08:17:24 +0000 (09:17 +0100)
Issue-ID: NONRTRIC-777
Change-Id: I6b995d76edccca3c567054f204125763ba24eb01
Signed-off-by: halil.cakal <halil.cakal@est.tech>
api/rac-api.json
docs/api-docs.rst

index 64f19d8..a6615f0 100644 (file)
                                     "items": {
                                         "$ref": "#/components/schemas/service"
                                     }
-                                }
+                                },
+                                "example": [
+                                    {
+                                        "name": "DroneIdentifier",
+                                        "version": "1.0.0",
+                                        "display_name": "Drone Identifier",
+                                        "description": "Detects if a UE is a drone",
+                                        "registrationDate": "2020-11-03"
+                                    }
+                                ]
                             }
                         }
                     }
                             "application/json": {
                                 "schema": {
                                     "$ref": "#/components/schemas/service"
+                                },
+                                "example": {
+                                    "name": "DroneIdentifier",
+                                    "version": "1.0.0",
+                                    "display_name": "Drone Identifier",
+                                    "description": "Detects if a UE is a drone",
+                                    "registrationDate": "2020-11-03"
                                 }
                             }
                         }
                             "application/json": {
                                 "schema": {
                                     "$ref": "#/components/schemas/error_information"
+                                },
+                                "example": {
+                                    "detail": "Service not found",
+                                    "status": 404
                                 }
                             }
                         }
                         "application/json": {
                             "schema": {
                                 "$ref": "#/components/schemas/inputService"
+                            },
+                            "example": {
+                                "version": "1.0.0",
+                                "display_name": "Drone Identifier",
+                                "description": "Detects if a UE is a drone"
                             }
                         }
                     }
index a0db8f8..bea573b 100644 (file)
@@ -23,6 +23,15 @@ Non-RT-RIC App Catalogue (Initial)
 
 The Service Catalogue provides a way for services to register themselves for other services to discover.
 
+The API is also described in Swagger-JSON and YAML:
+
+
+.. csv-table::
+   :header: "API name", "|swagger-icon|", "|yaml-icon|"
+   :widths: 10,5, 5
+
+   "App Catalogue API", ":download:`link <../api/rac-api.json>`", ":download:`link <../api/rac-api.yaml>`"
+
 .. Generates content from rac-api.json
 .. openapi:: ../api/rac-api.json
     :examples: