Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Webhook API #492

Closed
Closed
Assignees
ShMcK
Labels
enhancementNew feature or request
@ShMcK

Description

@ShMcK

Webhooks are a way for apps to communicate between them automatically.

Requirements

  • default url
  • optional url overwrites
  • token based authentication

Config

CodeRoad could send HTTP POST requests to a target endpoint based on desired events. A Webhooks can be specified in the CodeRoad config.

config:webhook:endpoint:“https://api.com/api/v1/coderoad”headers:x-token:$CODEROAD_WEBHOOK_TOKENevents:init:falsereset:falsestep_complete:truelevel_complete:truetutorial_complete:true

Event

An suggested example webhook POST request

{"type":“step_complete”,"levelId":“some-level-id","stepId":“some-step-id”,"tutorialId":"some-tutorial-id"}

Authentication

Authentication: we will need a standardized format for using aCODEROAD_WEBHOOK_TOKEN, perhaps a global string variable that can be passed in and evaluated.

Ideally not having to interpret a string, like "Bearer $CODEROAD_WEBHOOK_TOKEN", would save some development time.

Follow Up

This proposal could later be followed up with:

  • webhook error handling
  • retry strategy
  • batch processing

I have a few questions about using level/step ids. If a tutorial is changed, these will update. The webhook API would be expected to understand which level/step id it is mapped to. Let me know if this is a problem.

Resources

@raisedadead@moT01

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp