Categorygithub.com/MkDocsEditor/MkDocsEditor-Backend
modulepackage
0.0.0-20240730220816-3fb29c4df7a8
Repository: https://github.com/mkdocseditor/mkdocseditor-backend.git
Documentation: pkg.go.dev

# README

MkDocsEditor-Backend

Server backend for MkDocsEditor clients.

How to use

Configuration

Create a mkdocsrest.yaml file similar to the mkdocsrest_example.yaml.

Docker

Run the service using Docker and mount the configuration file and the wiki folder:

docker run -d \
    -p 7413:7413 \
    -v ~/mkdocsrest.yaml:/app/mkdocsrest.yaml \
    -v ~/mywiki:/data \
    ghcr.io/mkdocseditor/mkdocseditor-backend:latest

Connect

Use a client to connect to the service.

Clients

API

OpenAPI Documentation

General

MethodPathDescription
GET/aliveLiveness probe endpoint
GET/mkdocs/configRetrieve the mkdocsrest.yaml configurtion

Sections

MethodPathDescription
GET/sectionRetrieve the whole section tree
GET/section/Retrieve the section with the given sectionId
POST/sectionCreate a new secton
PUT/section/Update an existing section with the given sectionId
DELETE/section/Delete the section with the given sectionId

Documents

MethodPathDescription
GET/document/Retrieve the document with the given documentId
GET/document//wsWebsocket endpoint for realtime communication regarding updates of the document with the given documentId
GET/document//contentRetrieve the current content of the document with the given documentId
POST/documentCreate a new document
PUT/document/Rename an exsiting document with the given documentId
DELETE/document/Delete the document with the given documentId

Resources

MethodPathDescription
GET/resource/Retrieve the resource with the given resourceId
GET/resource//contentRetrieve the current content of the resource with the given resourceId
POST/resourceUpload a new resource
PUT/resource/Rename an exsiting resource with the given resourceId
DELETE/resource/Delete the resource with the given resourceId

Contributing

GitHub is for social coding: if you want to write code, I encourage contributions through pull requests from forks of this repository. Create GitHub tickets for bugs and new features and comment on the ones that you are interested in.

License

AGPLv3+

# Packages

No description provided by the author