mattermost-html2md

module
v0.0.0-...-483a452 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT

README

Mattermost HTML2MD

Usage

  1. Up infrastructure make infrastructure.local.up
  2. Go to http://localhost:8065 create access token and put it to all .env.
  3. Run tests go test ./... -v -coverprofile=coverage.txt -covermode atomic -timeout 30s -run ^TestMain$ mattermost-html2md/tests
  4. Run service make app.run
  5. 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"
}'
  1. See result 204 No Content
  2. Go to http://localhost:8065 and see result in channel
  3. Go to OpanAPI docs http://localhost:8080/docs or http://localhost:8080/redoc

Directories

Path Synopsis
cmd
internal
api
pkg
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL