Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Fix endpoint for triggering job run on chainlink#158

Open
hossam-magdy wants to merge 2 commits intosmartcontractkit:masterfrom
hossam-magdy:fix-node-job-run-endpoint
Open

Fix endpoint for triggering job run on chainlink#158
hossam-magdy wants to merge 2 commits intosmartcontractkit:masterfrom
hossam-magdy:fix-node-job-run-endpoint

Conversation

@hossam-magdy
Copy link
Copy Markdown

It seems that the correct endpoint for triggering job on chainlink node is: POST /v2/jobs/%s/runs (instead of POST /v2/specs/%s/runs). (Perhaps the */specs/* one was in a previous chainlink versions?)

Refs: Chainlink v1.0.0 router code, and docs


Also:

  • the endpoint for listing jobs: GET /v2/jobs (instead of GET /v2/specs)
  • the endpoint for creating job: POST /v2/jobs (instead of POST /v2/specs)

Ref: https://github.com/smartcontractkit/chainlink/blob/v1.0.0/core/web/router.go/#L283-L286


Or maybe I missed something and the */specs/* endpoints are meant to be the correct ones, in that case please feel free to close the PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant