HGustavs / LenaSYS

Code Viewer and Course Organization System used in some courses at University of Skövde
69 stars 31 forks source link

Standard for documentation of Microservice in Microservice Directory #16537

Open HGustavs opened 1 month ago

HGustavs commented 1 month ago

I believe we need a standard document/template for the microservice documentation

We want to document things such as

Do we have any other information we want to convey?

Please add suggestions as comment to this issue

Once this standard has been decided we can start producing documentation for each service that can be tested against this template so that it conforms to that template.... but first we need to agree on the format.

a23wilgr commented 1 month ago

We could structure the documentation in a folder called "Microservices Documentation" where we create separate subfolders or documents for each microservice, instead of having all documentation in the same document. This would make it more structured and documentation for specific services would be easier to find.

One map called "Microservices documentation" that contains one folder "Shared microservices documentation" and "Sectioned services". This folders will then contain one md per service/file - so one md for ex. "getUid", another for "logUserEvent" in the "Shared microservices documentation" etc.

b23johgu commented 1 month ago

Example of template for the documentation:

Name of file/service

Description

Description of what the service do and its function in the system.

Input Parameters

Parameters will be described in tables for easier readability

Parameter Type Description
$exampleid string Example ID Description

Calling Methods

Output Data and Format

Output Data will be described in tables for easier readability

Output Type Description
exampleid string Example ID Description

Examples of Use

CODE

Microservices Used

Includes and microservices used

a23danme commented 1 month ago

The example template looks really good! It covers the most important stuff, and I do not see any problems with it.