Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions apifeeder/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ servers:

info:
title: opensvc feeder api
version: 1.0.11
version: 2.0.0

paths:
/feed/daemon/ping:
/daemon/ping:
post:
description: |
Refresh cluster daemon status timestamps
Expand All @@ -30,7 +30,7 @@ paths:
tags:
- agent

/feed/daemon/status:
/daemon/status:
post:
description: |
Refresh cluster daemon status
Expand Down Expand Up @@ -77,7 +77,7 @@ paths:
500:
$ref: '#/components/responses/500'

/feed/node/disk:
/node/disk:
post:
description: |
Update or create node disks configuration
Expand All @@ -97,7 +97,7 @@ paths:
tags:
- agent

/feed/node/system:
/node/system:
post:
description: |
Post system discovery
Expand Down Expand Up @@ -125,7 +125,7 @@ paths:
tags:
- agent

/feed/instance/action:
/instance/action:
put:
description: |
End an action for a given object path
Expand Down Expand Up @@ -183,7 +183,7 @@ paths:
tags:
- agent

/feed/instance/resource_info:
/instance/resource_info:
post:
description: |
Update or create instance resource info
Expand All @@ -203,7 +203,7 @@ paths:
tags:
- agent

/feed/instance/status:
/instance/status:
post:
description: |
Store opensvc 2.1 instance status data.
Expand Down Expand Up @@ -235,7 +235,7 @@ paths:
tags:
- agent

/feed/object/config:
/object/config:
post:
description: |
Update or create object configuration
Expand Down Expand Up @@ -649,7 +649,7 @@ components:
properties:
object_without_config:
type: array
description: list of object names that requires POST /oc3/feed/object/config
description: list of object names that requires POST /oc3/feed/api/object/config
items:
type: string
description: object name
Expand All @@ -663,7 +663,7 @@ components:
properties:
object_without_config:
type: array
description: list of object names that requires POST /oc3/feed/object/config
description: list of object names that requires POST /oc3/feed/api/object/config
items:
type: string
description: object name
Expand Down
129 changes: 64 additions & 65 deletions apifeeder/codegen_server_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apifeeder/codegen_type_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ func cmdWorker() *cobra.Command {
return cmd
}

func cmdAPI() *cobra.Command {
func cmdApiFeeder() *cobra.Command {
return &cobra.Command{
Use: "api",
Use: "apifeeder",
Short: "serve the feeder api",
RunE: func(cmd *cobra.Command, args []string) error {
if err := setup(); err != nil {
Expand Down Expand Up @@ -128,7 +128,7 @@ func cmdRoot(args []string) *cobra.Command {
cmdSchedulerList(),
)
cmd.AddCommand(
cmdAPI(),
cmdApiFeeder(),
cmdApiCollector(),
grpScheduler,
cmdVersion(),
Expand Down
Loading