[ONOS-7470] Add swagger API doc of openstack networking module
Change-Id: Iaf7e3f6f5df027897aed496ebbf58d21b6a915e3
diff --git a/apps/openstacknetworking/src/main/resources/definitions/NeutronFloatingIp.json b/apps/openstacknetworking/src/main/resources/definitions/NeutronFloatingIp.json
new file mode 100644
index 0000000..7976ffe
--- /dev/null
+++ b/apps/openstacknetworking/src/main/resources/definitions/NeutronFloatingIp.json
@@ -0,0 +1,58 @@
+{
+ "type": "object",
+ "required": [
+ "floatingip"
+ ],
+ "properties": {
+ "floatingip": {
+ "type": "object",
+ "description": "A floatingip object.",
+ "required": [
+ "id",
+ "router_id",
+ "tenant_id",
+ "floating_network_id",
+ "floating_ip_address",
+ "fixed_ip_address",
+ "port_id"
+ ],
+ "properties": {
+ "id": {
+ "type": "string",
+ "example": "2f245a7b-796b-4f26-9cf9-9e82d248fda7",
+ "description": "The ID of the floating IP address."
+ },
+ "router_id": {
+ "type": "string",
+ "example": "d23abc8d-2991-4a55-ba98-2aaea84cc72",
+ "description": "The ID of the router for the floating IP."
+ },
+ "tenant_id": {
+ "type": "string",
+ "example": "4969c491a3c74ee4af974e6d800c62de",
+ "description": "The ID of the project."
+ },
+ "floating_network_id": {
+ "type": "string",
+ "example": "376da547-b977-4cfe-9cba-275c80debf57",
+ "description": "The ID of the network associated with the floating IP."
+ },
+ "floating_ip_address": {
+ "type": "string",
+ "example": "172.24.4.228",
+ "description": "The floating IP address."
+ },
+ "fixed_ip_address": {
+ "type": "string",
+ "example": "10.0.0.3",
+ "description": "The fixed IP address that is associated with the floating IP address."
+ },
+ "port_id": {
+ "type": "string",
+ "example": "ce705c24-c1ef-408a-bda3-7bbd946164ab",
+ "description": "The ID of a port associated with the floating IP."
+ }
+ }
+ }
+ }
+}
\ No newline at end of file