Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Webhook adaptor #9

Merged
merged 3 commits into from
Oct 3, 2022
Merged

Conversation

grillo-delmal
Copy link
Contributor

@grillo-delmal grillo-delmal commented Oct 1, 2022

This was based on the JimsMeme Logger adaptor.

The purpose of this adapter is to enable to trigger blendshapes through http requests.

It opens a webserver on the configured port (default 8080) and listens the following endpoint.

POST /blendshapes : Expects application/json message with the list of blendshapes to trigger.

Example:

curl -X POST https://localhost:8080/blendshapes \
   -H 'Content-Type: application/json' \
   -d '{"JOY": 1.0}'

@grillo-delmal grillo-delmal changed the title [WIP] Add Webhook adaptor Add Webhook adaptor Oct 2, 2022
dub.sdl Outdated
@@ -8,13 +8,12 @@ targetPath "out/"
dependency "inmath" version="~>1.0.2"
dependency "vmc-d" version="~>1.1.2"
dependency "fghj" version="~>1.0.0"
dependency "vibe-d:http" version="~>0.9.4"

configuration "default" {
targetType "library"
}

configuration "jml" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe rename jml to something more descriptive.

maybe web-adaptors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking that it made sense to change it to something like "vibe-d" or "http-adaptors" or something, i'll go with web-adaptors :)

Copy link
Contributor

@seagetch seagetch Oct 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"jml" is the short tag for "JinsMemeLogger"
I assume that when someone decided to turn on jml adaptor, this configuration is specified from outside.
If these modules are merged as a default option, maybe just moving configurations to top level is good way, I think.

@LunaTheFoxgirl LunaTheFoxgirl merged commit c500725 into Inochi2D:main Oct 3, 2022
@grillo-delmal grillo-delmal deleted the webhook branch October 4, 2022 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants