CreateNode converts echo context to params.
(ctx echo.Context)
| 1399 | |
| 1400 | // CreateNode converts echo context to params. |
| 1401 | func (w *ServerInterfaceWrapper) CreateNode(ctx echo.Context) error { |
| 1402 | var err error |
| 1403 | // ------------- Path parameter "publisherId" ------------- |
| 1404 | var publisherId string |
| 1405 | |
| 1406 | err = runtime.BindStyledParameterWithOptions("simple", "publisherId", ctx.Param("publisherId"), &publisherId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) |
| 1407 | if err != nil { |
| 1408 | return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter publisherId: %s", err)) |
| 1409 | } |
| 1410 | |
| 1411 | ctx.Set(BearerAuthScopes, []string{}) |
| 1412 | |
| 1413 | // Invoke the callback with all the unmarshaled arguments |
| 1414 | err = w.Handler.CreateNode(ctx, publisherId) |
| 1415 | return err |
| 1416 | } |
| 1417 | |
| 1418 | // DeleteNode converts echo context to params. |
| 1419 | func (w *ServerInterfaceWrapper) DeleteNode(ctx echo.Context) error { |
nothing calls this directly
no test coverage detected