Commit f02a177f authored by Michel Roy's avatar Michel Roy Committed by Kevin Di Lallo
Browse files

using openapi-generator

parent 39f2a297
Loading
Loading
Loading
Loading
+975 −1057

File changed.

Preview size limit exceeded, changes collapsed.

+15 −4
Original line number Diff line number Diff line
@@ -3,17 +3,17 @@
Copyright (c) 2019  InterDigital Communications, Inc Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 

## Overview
This server was generated by the [swagger-codegen]
(https://github.com/swagger-api/swagger-codegen) project.  
This server was generated by the [openapi-generator]
(https://openapi-generator.tech) project.
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.  
-

To see how to make this your own, look here:

[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
[README](https://openapi-generator.tech)

- API version: 1.0.0
- Build date: 2019-09-27T16:00:38.458-04:00
- Build date: 2019-10-28T09:53:52.890114-04:00[America/Montreal]


### Running the server
@@ -23,3 +23,14 @@ To run the server, follow these simple steps:
go run main.go
```

To run the server in a docker container
```
docker build --network=host -t server .
```

Once image is built use
```
docker run --rm -it server 
```

+2 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
 * Copyright (c) 2019  InterDigital Communications, Inc Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 *
 * API version: 1.0.0
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 * Generated by: OpenAPI Generator (https://openapi-generator.tech)
 */

package server
@@ -13,6 +13,7 @@ import (
	"net/http"
)

// GetStates - This operation returns status information for pods
func GetStates(w http.ResponseWriter, r *http.Request) {
	ceGetStates(w, r)
}
+7 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
 * Copyright (c) 2019  InterDigital Communications, Inc Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 *
 * API version: 1.0.0
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 * Generated by: OpenAPI Generator (https://openapi-generator.tech)
 */

package server
@@ -13,26 +13,32 @@ import (
	"net/http"
)

// CreateScenario - Add new scenario to MEEP store
func CreateScenario(w http.ResponseWriter, r *http.Request) {
	ceCreateScenario(w, r)
}

// DeleteScenario - Delete scenario from MEEP store
func DeleteScenario(w http.ResponseWriter, r *http.Request) {
	ceDeleteScenario(w, r)
}

// DeleteScenarioList - Delete all scenarios in MEEP store
func DeleteScenarioList(w http.ResponseWriter, r *http.Request) {
	ceDeleteScenarioList(w, r)
}

// GetScenario - Retrieve scenario from MEEP store
func GetScenario(w http.ResponseWriter, r *http.Request) {
	ceGetScenario(w, r)
}

// GetScenarioList - Retrieve list of scenarios in MEEP store
func GetScenarioList(w http.ResponseWriter, r *http.Request) {
	ceGetScenarioList(w, r)
}

// SetScenario - Update scenario in MEEP store
func SetScenario(w http.ResponseWriter, r *http.Request) {
	ceSetScenario(w, r)
}
+6 −5
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
 * Copyright (c) 2019  InterDigital Communications, Inc Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 *
 * API version: 1.0.0
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 * Generated by: OpenAPI Generator (https://openapi-generator.tech)
 */

package server
@@ -13,26 +13,27 @@ import (
	"net/http"
)

// ActivateScenario - Activate (deploy) scenario
func ActivateScenario(w http.ResponseWriter, r *http.Request) {
	ceActivateScenario(w, r)
}

// GetActiveNodeServiceMaps - Retrieve list of active external node service mappings
func GetActiveNodeServiceMaps(w http.ResponseWriter, r *http.Request) {
	ceGetActiveNodeServiceMaps(w, r)
}

// GetActiveScenario - Retrieve active (deployed) scenario
func GetActiveScenario(w http.ResponseWriter, r *http.Request) {
	ceGetActiveScenario(w, r)
}

func GetEventList(w http.ResponseWriter, r *http.Request) {
	ceGetEventList(w, r)
}

// SendEvent - Send event to active (deployed) scenario
func SendEvent(w http.ResponseWriter, r *http.Request) {
	ceSendEvent(w, r)
}

// TerminateScenario - Terminate active (deployed) scenario
func TerminateScenario(w http.ResponseWriter, r *http.Request) {
	ceTerminateScenario(w, r)
}
Loading