module
Version:
v0.0.0-...-483a452
Opens a new window with list of versions in this module.
Published: Mar 7, 2024
License: MIT
Opens a new window with license information.
README
¶
Mattermost HTML2MD
Usage
- Up infrastructure
make infrastructure.local.up
- Go to http://localhost:8065 create access token and put it to all
.env
.
- Run tests
go test ./... -v -coverprofile=coverage.txt -covermode atomic -timeout 30s -run ^TestMain$ mattermost-html2md/tests
- Run service
make app.run
- Do request
curl --location 'http://localhost:8080/api/v1/webhook' \
--header 'X-API-KEY: test' \
--header 'Content-Type: application/json' \
--data '{
"text": "<h1>Hello World</h1><p>This is a simple HTML document.</p>"
"channel": "pyx1obq8e7ympkm4eitq3uq89c"
}'
- See result
204 No Content
- Go to http://localhost:8065 and see result in channel
- Go to OpanAPI docs http://localhost:8080/docs or http://localhost:8080/redoc
Directories
¶
Click to show internal directories.
Click to hide internal directories.