Commit 2b954a94 authored by Yann Garcia's avatar Yann Garcia
Browse files

Update meep-sandbox-api PoC

parent 784a0146
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -6,7 +6,11 @@ curl --verbose --request GET https://mec-platform.etsi.org/sandbox-api/v1/sandbo

curl --verbose --request POST https://mec-platform.etsi.org/sandbox-api/v1/sandboxNetworkScenarios/4g-5g-macro-v2x?sandbox_name=sbx5zg770k --header "Accept: application/json"

curl --verbose --request POST https://mec-platform.etsi.org/sandbox-api/v1/logout?sandbox_name=sbx5zg770k --header "Accept: application/json"
curl --verbose --request GET https://mec-platform.etsi.org/sandbox-api/v1/sandboxMecServices?sandbox_name=sbx5zg770k --header "Accept: application/json"

curl --verbose --request DELETE https://mec-platform.etsi.org/sandbox-api/v1/sandboxNetworkScenarios/4g-5g-macro-v2x?sandbox_name=sbx5zg770k --header "Accept: application/json"

curl --verbose --request POST https://mec-platform.etsi.org/sandbox-api/v1/logout?sandbox_name=sbxj3a7sld --header "Accept: application/json"

kubectl logs meep-auth-svc-5b68d569d8-mzfcs > meep-auth-svc.log 2>&1
kubectl logs meep-sandbox-api-6f497778b5-g5qsv > meep-sandbox-api.log 2>&1
 No newline at end of file
+16 −4
Original line number Diff line number Diff line
@@ -32,12 +32,21 @@ paths:
          - GITHUB
          - GITLAB (EOL ACCOUNT)
      responses:
        "200":
          description: OK
        "201":
          description: Created
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/Sandbox'
        "400":
          description: Bad Request
          content: {}
        "401":
          description: Unauthorized
          content: {}
        "404":
          description: Not Found
          content: {}
  /logout:
    post:
      tags:
@@ -58,11 +67,14 @@ paths:
        "200":
          description: OK
          content: {}
        "400":
          description: Bad Request
          content: {}
        "401":
          description: Unauthorized
          content: {}
        "404":
          description: Unauthorized
          description: Not Found
          content: {}
  /sandboxNetworkScenarios:
    get:
@@ -115,7 +127,7 @@ paths:
          x-exportParamName: Provider
          x-optionalDataType: String
      responses:
        "201":
        "200":
          description: "Upon success, an empty response message."
        "400":
          description: "Bad Request : used to indicate that incorrect parameters were\
+22 −0
Original line number Diff line number Diff line
/*
 * MEC Sandbox API
 *
 * The MEC Sandbox API described using OpenAPI
 *
 * API version: 0.0.2
 * Contact: cti_support@etsi.org
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */
package server

import (
	"net/http"
)

func Login(w http.ResponseWriter, r *http.Request) {
	login(w, r)
}

func Logout(w http.ResponseWriter, r *http.Request) {
	logout(w, r)
}
+18 −0
Original line number Diff line number Diff line
/*
 * MEC Sandbox API
 *
 * The MEC Sandbox API described using OpenAPI
 *
 * API version: 0.0.2
 * Contact: cti_support@etsi.org
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */
package server

import (
	"net/http"
)

func SandboxAppInstancesGET(w http.ResponseWriter, r *http.Request) {
	sandboxAppInstancesGET(w, r)
}
+24 −0
Original line number Diff line number Diff line
/*
 * MEC Sandbox API
 *
 * The MEC Sandbox API described using OpenAPI
 *
 * API version: 0.0.2
 * Contact: cti_support@etsi.org
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */
package server

import (
	"net/http"
)

func SandboxLogsSubscriptionsDELETE(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
	w.WriteHeader(http.StatusOK)
}

func SandboxLogsSubscriptionsPOST(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
	w.WriteHeader(http.StatusOK)
}
Loading