Commit 0e355b6a authored by Yann Garcia's avatar Yann Garcia
Browse files

Update meep-sandbox-api; Add a MEC application example (required go 1.8+)

parent 2b954a94
Loading
Loading
Loading
Loading

.vscode/settings.json

deleted100644 → 0
+0 −23
Original line number Diff line number Diff line
{
    "files.eol": "\n",
    "go.formatTool": "goimports",
    "go.lintTool": "golangci-lint",
    "go.lintFlags": [
        "--fast"
    ],
    // "go.useLanguageServer": false,
    "go.testOnSave": true,
    "[go]": {
        "editor.snippetSuggestions": "none",
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": true
        },
    },
    "[javascript]": {
        "editor.codeActionsOnSave": {
            "source.fixAll.eslint": true,
        },
    },
    "eslint.format.enable": true
}
+11 −7
Original line number Diff line number Diff line
@@ -92,7 +92,8 @@ paths:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SandboxNetworkScenario'
                  type: 'string'
                  description: "Network scenario name"
                x-content-type: application/json
        "400":
          description: "Bad Request : used to indicate that incorrect parameters were\
@@ -163,10 +164,11 @@ paths:
          x-exportParamName: Provider
          x-optionalDataType: String
      - name: sandbox_name
        description: Network scenario to retrieve
        in: query
        description: Network scenario to retrieve
        required: true
        style: simple
        explode: false
        schema:
          type: string
      responses:
@@ -205,10 +207,11 @@ paths:
          x-exportParamName: Provider
          x-optionalDataType: String
      - name: sandbox_name
        description: Network scenario to retrieve
        in: query
        description: Network scenario to retrieve
        required: true
        style: simple
        explode: false
        schema:
          type: string
      responses:
@@ -231,10 +234,11 @@ paths:
      operationId: SandboxUeController_GET
      parameters:
      - name: sandbox_name
        description: Network scenario to retrieve
        in: query
        description: Network scenario to retrieve
        required: true
        style: simple
        explode: false
        schema:
          type: string
      responses:
@@ -509,9 +513,9 @@ components:
      type: object
      properties:
        name:
          description: Sandbox name
          type: string
          x-etsi-mec-cardinality: '1'
          description: Sandbox name
          x-etsi-mec-cardinality: "1"
          x-etsi-mec-origin-type: String
      description: Sandbox object
      example: {}
+3 −3
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ func init() {
func main() {
	log.Info(os.Args)

	log.Info("Starting RNI Service")
	log.Info("Starting MEC Sandbox API Service")

	run := true
	go func() {
@@ -54,7 +54,7 @@ func main() {
		// Initialize SANDBOX-API
		err := server.Init()
		if err != nil {
			log.Error("Failed to initialize RNI Service")
			log.Error("Failed to initialize MEC Sandbox API Service")
			run = false
			return
		}
@@ -62,7 +62,7 @@ func main() {
		// Start SANDBOX-API Event Handler thread
		err = server.Run()
		if err != nil {
			log.Error("Failed to start RNI Service")
			log.Error("Failed to start MEC Sandbox API Service")
			run = false
			return
		}
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)

- API version: 0.0.2
- Build date: 2024-03-10T17:36:54.558Z[Etc/UTC]
- Build date: 2024-04-18T14:56:31.254Z[Etc/UTC]


### Running the server
+6 −6
Original line number Diff line number Diff line
@@ -13,18 +13,18 @@ import (
	"net/http"
)

func SandboxNetworkScenariosGET(w http.ResponseWriter, r *http.Request) {
	sandboxNetworkScenariosGET(w, r)
}

func SandboxIndividualNetworkScenariosGET(w http.ResponseWriter, r *http.Request) {
	sandboxIndividualNetworkScenariosGET(w, r)
}

func SandboxNetworkScenariosDELETE(w http.ResponseWriter, r *http.Request) {
	sandboxNetworkScenariosDELETE(w, r)
}

func SandboxNetworkScenariosPOST(w http.ResponseWriter, r *http.Request) {
	sandboxNetworkScenariosPOST(w, r)
}

func SandboxNetworkScenariosDELETE(w http.ResponseWriter, r *http.Request) {
	sandboxNetworkScenariosDELETE(w, r)
func SandboxNetworkScenariosGET(w http.ResponseWriter, r *http.Request) {
	sandboxNetworkScenariosGET(w, r)
}
Loading