From fbcd927c07d1fc4d7af83ae77a4efa649bee7c14 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Thu, 25 Jan 2024 12:30:55 -0600 Subject: [PATCH] Remove old swagger spec backup --- swagger_server/swagger/swagger-backup.yaml | 819 --------------------- 1 file changed, 819 deletions(-) delete mode 100644 swagger_server/swagger/swagger-backup.yaml diff --git a/swagger_server/swagger/swagger-backup.yaml b/swagger_server/swagger/swagger-backup.yaml deleted file mode 100644 index 6b713ef0..00000000 --- a/swagger_server/swagger/swagger-backup.yaml +++ /dev/null @@ -1,819 +0,0 @@ -openapi: 3.0.0 -info: - title: SDX-Controller - description: "You can find\nout more about Swagger at\n[http://swagger.io](http://swagger.io)\ - \ or on\n[irc.freenode.net, #swagger](http://swagger.io/irc/).\n" - termsOfService: http://swagger.io/terms/ - contact: - email: yxin@renci.org - license: - name: Apache 2.0 - url: http://www.apache.org/licenses/LICENSE-2.0.html - version: 1.0.0 -externalDocs: - description: Find out more about Swagger - url: http://swagger.io -servers: -- url: https://virtserver.swaggerhub.com/SDX-Controller/1.0.0 - description: SwaggerHub API Auto Mocking -- url: https://0.0.0.0:8080/v2 - description: Localhost -tags: -- name: topology - description: Everything about the inter-domain topology - externalDocs: - description: Find out more - url: https://www.atlanticwave-sdx.net -- name: node - description: everything about a node -- name: link - description: everything about a link -- name: user - description: Operations about user - externalDocs: - description: Find out more about our store - url: https://www.atlanticwave-sdx.net -paths: - /topology: - get: - tags: - - topology - summary: get an existing topology - description: ID of the topology - operationId: get_topology - responses: - "200": - description: ok - content: - text/plain: - schema: - type: string - x-content-type: text/plain - "400": - description: Invalid ID supplied - "404": - description: Topology not found - x-openapi-router-controller: swagger_server.controllers.topology_controller - /topology/version: - get: - tags: - - topology - summary: Finds topology version - description: Topology version - operationId: topology_version - parameters: - - name: topologyId - in: query - description: topology id - required: true - style: form - explode: true - schema: - type: string - responses: - "200": - description: successful operation - content: - application/json: - schema: - $ref: '#/components/schemas/topology' - "400": - description: Invalid id value - security: - - topology_auth: - - write:topology - - read:topology - x-openapi-router-controller: swagger_server.controllers.topology_controller - /topology/grenml: - get: - tags: - - topology - summary: Get topology grenml - description: Returns a single topology by grenml - operationId: get_topologyby_grenml - responses: - "200": - description: ok - content: - text/plain: - schema: - type: string - x-content-type: text/plain - "400": - description: Invalid ID supplied - "404": - description: Topology not found - x-openapi-router-controller: swagger_server.controllers.topology_controller - /node: - get: - tags: - - node - summary: get an existing node - description: ID of the node - operationId: get_node - responses: - "200": - description: ok - "400": - description: Invalid ID supplied - "404": - description: Topology not found - x-openapi-router-controller: swagger_server.controllers.node_controller - /link: - get: - tags: - - link - summary: get an existing link - description: ID of the link - operationId: get_link - responses: - "200": - description: ok - "400": - description: Invalid ID supplied - "404": - description: Link not found - x-openapi-router-controller: swagger_server.controllers.link_controller - /conection: - post: - tags: - - connection - summary: Place an connection request from the SDX-Controller - operationId: place_connection - requestBody: - description: order placed for creating a connection - content: - application/json: - schema: - $ref: '#/components/schemas/connection' - required: true - responses: - "200": - description: successful operation - content: - application/json: - schema: - $ref: '#/components/schemas/connection' - "400": - description: Invalid Connection - x-openapi-router-controller: swagger_server.controllers.connection_controller - /connection/{connectionId}: - get: - tags: - - connection - summary: Find connection by ID - description: connection details - operationId: getconnection_by_id - parameters: - - name: connectionId - in: path - description: ID of connection that needs to be fetched - required: true - style: simple - explode: false - schema: - maximum: 10 - minimum: 1 - type: integer - format: int64 - responses: - "200": - description: successful operation - content: - application/json: - schema: - $ref: '#/components/schemas/connection' - application/xml: - schema: - $ref: '#/components/schemas/connection' - "400": - description: Invalid ID supplied - "404": - description: connection not found - x-openapi-router-controller: swagger_server.controllers.connection_controller - delete: - tags: - - connection - summary: Delete connection order by ID - description: delete a connection - operationId: delete_connection - parameters: - - name: connectionId - in: path - description: ID of the connection that needs to be deleted - required: true - style: simple - explode: false - schema: - minimum: 1 - type: integer - format: int64 - responses: - "400": - description: Invalid ID supplied - "404": - description: connection not found - x-openapi-router-controller: swagger_server.controllers.connection_controller - /user: - post: - tags: - - user - summary: Create user - description: This can only be done by the logged in user. - operationId: create_user - requestBody: - description: Created user object - content: - application/json: - schema: - $ref: '#/components/schemas/User' - required: true - responses: - default: - description: successful operation - x-openapi-router-controller: swagger_server.controllers.user_controller - /user/createWithArray: - post: - tags: - - user - summary: Creates list of users with given input array - operationId: create_users_with_array_input - requestBody: - $ref: '#/components/requestBodies/UserArray' - responses: - default: - description: successful operation - x-openapi-router-controller: swagger_server.controllers.user_controller - /user/createWithList: - post: - tags: - - user - summary: Creates list of users with given input array - operationId: create_users_with_list_input - requestBody: - $ref: '#/components/requestBodies/UserArray' - responses: - default: - description: successful operation - x-openapi-router-controller: swagger_server.controllers.user_controller - /user/login: - get: - tags: - - user - summary: Logs user into the system - operationId: login_user - parameters: - - name: username - in: query - description: The user name for login - required: true - style: form - explode: true - schema: - type: string - - name: password - in: query - description: The password for login in clear text - required: true - style: form - explode: true - schema: - type: string - responses: - "200": - description: successful operation - headers: - X-Rate-Limit: - description: calls per hour allowed by the user - style: simple - explode: false - schema: - type: integer - format: int32 - X-Expires-After: - description: date in UTC when token expires - style: simple - explode: false - schema: - type: string - format: date-time - content: - application/json: - schema: - type: string - x-content-type: application/json - application/xml: - schema: - type: string - "400": - description: Invalid username/password supplied - x-openapi-router-controller: swagger_server.controllers.user_controller - /user/logout: - get: - tags: - - user - summary: Logs out current logged in user session - operationId: logout_user - responses: - default: - description: successful operation - x-openapi-router-controller: swagger_server.controllers.user_controller - /user/{username}: - get: - tags: - - user - summary: Get user by user name - operationId: get_user_by_name - parameters: - - name: username - in: path - description: The name that needs to be fetched. Use user1 for testing. - required: true - style: simple - explode: false - schema: - type: string - responses: - "200": - description: successful operation - content: - application/json: - schema: - $ref: '#/components/schemas/User' - application/xml: - schema: - $ref: '#/components/schemas/User' - "400": - description: Invalid username supplied - "404": - description: User not found - x-openapi-router-controller: swagger_server.controllers.user_controller - put: - tags: - - user - summary: Updated user - description: This can only be done by the logged in user. - operationId: update_user - parameters: - - name: username - in: path - description: name that need to be updated - required: true - style: simple - explode: false - schema: - type: string - requestBody: - description: Updated user object - content: - application/json: - schema: - $ref: '#/components/schemas/User' - required: true - responses: - "400": - description: Invalid user supplied - "404": - description: User not found - x-openapi-router-controller: swagger_server.controllers.user_controller - delete: - tags: - - user - summary: Delete user - description: This can only be done by the logged in user. - operationId: delete_user - parameters: - - name: username - in: path - description: The name that needs to be deleted - required: true - style: simple - explode: false - schema: - type: string - responses: - "400": - description: Invalid username supplied - "404": - description: User not found - x-openapi-router-controller: swagger_server.controllers.user_controller -components: - schemas: - connection: - required: - - egress_port - - id - - ingress_port - - name - type: object - properties: - id: - type: string - name: - type: string - ingress_port: - $ref: '#/components/schemas/port' - egress_port: - $ref: '#/components/schemas/port' - quantity: - type: integer - format: int32 - start_time: - type: string - format: date-time - end_time: - type: string - format: date-time - status: - type: string - description: Connection Status - enum: - - success - - fail - - scheduled - - provisioining - complete: - type: boolean - default: false - example: - start_time: 2000-01-23T04:56:07.000+00:00 - quantity: 0 - name: name - end_time: 2000-01-23T04:56:07.000+00:00 - id: id - egress_port: - node: urn:sdx:port:amlight.net:Novi06 - name: urn:sdx:port:amlight.net:Novi06:10 - short_name: "10" - id: id - state: enabled - status: up - ingress_port: - node: urn:sdx:port:amlight.net:Novi06 - name: urn:sdx:port:amlight.net:Novi06:9 - short_name: "9" - id: id - state: enabled - status: up - complete: false - status: success - timestamp: 2000-01-23T04:56:07+00:00 - version: 1 - xml: - name: Connection - User: - type: object - properties: - id: - type: integer - format: int64 - username: - type: string - firstName: - type: string - lastName: - type: string - email: - type: string - password: - type: string - phone: - type: string - userStatus: - type: integer - description: User Status - format: int32 - example: - firstName: firstName - lastName: lastName - password: password - userStatus: 6 - phone: phone - id: 0 - email: email - username: username - xml: - name: User - topology: - required: - - id - - links - - name - - nodes - - timestamp - - version - type: object - properties: - id: - type: string - name: - type: string - example: amLight - version: - type: integer - format: int64 - example: 1 - timestamp: - type: string - format: date-time - nodes: - type: array - items: - $ref: '#/components/schemas/node' - links: - type: array - items: - $ref: '#/components/schemas/link' - example: - nodes: - - name: urn:sdx:node:amlight.net:Novi06 - short_name: Novi06 - location: - address: address - latitude: 0.80082819046101150206595775671303272247314453125 - longitude: 6.02745618307040320615897144307382404804229736328125 - id: id - ports: - - node: urn:sdx:port:amlight.net:Novi06 - name: urn:sdx:port:amlight.net:Novi06:9 - short_name: "9" - id: id - state: enabled - status: up - - node: urn:sdx:port:amlight.net:Novi06 - name: urn:sdx:port:amlight.net:Novi06:9 - short_name: "9" - id: id - state: enabled - status: up - - name: urn:sdx:node:amlight.net:Novi06 - short_name: Novi06 - location: - address: address - latitude: 0.80082819046101150206595775671303272247314453125 - longitude: 6.02745618307040320615897144307382404804229736328125 - id: id - ports: - - node: urn:sdx:port:amlight.net:Novi06 - name: urn:sdx:port:amlight.net:Novi06:9 - short_name: "9" - id: id - state: enabled - status: up - - node: urn:sdx:port:amlight.net:Novi06 - name: urn:sdx:port:amlight.net:Novi06:9 - short_name: "9" - id: id - state: enabled - status: up - timestamp: 2000-01-23T04:56:07.000+00:00 - name: amLight - links: - - residual_bandwidth: 596213.79545492655597627162933349609375 - packet_loss: 23.0213588693476509661195450462400913238525390625 - bandwidth: 146582.15146899645333178341388702392578125 - latency: 563738.10192566714249551296234130859375 - name: miami-Boca.amLight.sdx - short_name: Miami-BocaRaton - id: id - availability: 70.61401241503108394681476056575775146484375 - state: enabled - ports: - - null - - null - status: up - - residual_bandwidth: 596213.79545492655597627162933349609375 - packet_loss: 23.0213588693476509661195450462400913238525390625 - bandwidth: 146582.15146899645333178341388702392578125 - latency: 563738.10192566714249551296234130859375 - name: miami-Boca.amLight.sdx - short_name: Miami-BocaRaton - id: id - availability: 70.61401241503108394681476056575775146484375 - state: enabled - ports: - - null - - null - status: up - id: id - version: 1 - xml: - name: topology - node: - required: - - id - - location - - name - - ports - type: object - properties: - id: - type: string - name: - type: string - example: urn:sdx:node:amlight.net:Novi06 - short_name: - type: string - example: Novi06 - ports: - type: array - items: - $ref: '#/components/schemas/port' - location: - $ref: '#/components/schemas/location' - example: - name: urn:sdx:node:amlight.net:Novi06 - short_name: Novi06 - location: - address: address - latitude: 0.80082819046101150206595775671303272247314453125 - longitude: 6.02745618307040320615897144307382404804229736328125 - id: id - ports: - - node: urn:sdx:port:amlight.net:Novi06 - name: urn:sdx:port:amlight.net:Novi06:9 - short_name: "9" - id: id - state: enabled - status: up - - node: urn:sdx:port:amlight.net:Novi06 - name: urn:sdx:port:amlight.net:Novi06:9 - short_name: "9" - id: id - state: enabled - status: up - xml: - name: node - link: - required: - - id - - name - - ports - type: object - properties: - id: - type: string - name: - type: string - example: miami-Boca.amLight.sdx - short_name: - type: string - example: Miami-BocaRaton - ports: - type: array - items: - $ref: '#/components/schemas/port' - bandwidth: - maximum: 1000000 - minimum: 1 - type: number - residual_bandwidth: - maximum: 1000000 - minimum: 1 - type: number - latency: - maximum: 1000000 - minimum: 1 - type: number - packet_loss: - maximum: 100 - minimum: 0 - type: number - availability: - maximum: 100 - minimum: 0 - type: number - state: - type: string - example: enabled - status: - type: string - example: up - example: - residual_bandwidth: 596213.79545492655597627162933349609375 - packet_loss: 23.0213588693476509661195450462400913238525390625 - bandwidth: 146582.15146899645333178341388702392578125 - latency: 563738.10192566714249551296234130859375 - name: miami-Boca.amLight.sdx - short_name: Miami-BocaRaton - id: id - availability: 70.61401241503108394681476056575775146484375 - state: enabled - ports: - - null - - null - status: up - xml: - name: link - port: - required: - - id - - name - - node - - status - type: object - properties: - id: - type: string - name: - type: string - example: urn:sdx:port:amlight.net:Novi06:9 - short_name: - type: string - example: "9" - node: - type: string - example: urn:sdx:port:amlight.net:Novi06 - state: - type: string - example: enabled - status: - type: string - example: up - example: - node: urn:sdx:port:amlight.net:Novi06 - name: urn:sdx:port:amlight.net:Novi06:9 - short_name: "9" - id: id - state: enabled - status: up - xml: - name: port - location: - type: object - properties: - address: - type: string - latitude: - type: number - longitude: - type: number - example: - address: address - latitude: 0.80082819046101150206595775671303272247314453125 - longitude: 6.02745618307040320615897144307382404804229736328125 - ApiResponse: - type: object - properties: - code: - type: integer - format: int32 - type: - type: string - message: - type: string - requestBodies: - topology: - description: Inter-domain topology object that the SDX-Controller keeps - content: - application/json: - schema: - $ref: '#/components/schemas/topology' - required: true - node: - description: node object in the Inter-domain topology - content: - application/json: - schema: - $ref: '#/components/schemas/node' - required: true - link: - description: link object in the Inter-domain topology - content: - application/json: - schema: - $ref: '#/components/schemas/link' - required: true - port: - description: port object in the Inter-domain topology - content: - application/json: - schema: - $ref: '#/components/schemas/port' - required: true - UserArray: - description: List of user object - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/User' - required: true - securitySchemes: - topology_auth: - type: oauth2 - flows: - implicit: - authorizationUrl: http://0.0.0.0:8080/oauth/dialog - scopes: - write:topology: modify topology in your account - read:topology: read your topology - x-tokenInfoFunc: swagger_server.controllers.authorization_controller.check_topology_auth - x-scopeValidateFunc: swagger_server.controllers.authorization_controller.validate_scope_topology_auth - api_key: - type: apiKey - name: api_key - in: header - x-apikeyInfoFunc: swagger_server.controllers.authorization_controller.check_api_key -