Skip to content

API/SDK Documentation #339

@simenandre

Description

@simenandre

Hello! 👋

In most cases, developers are looking to use one of the SDKs. Many of the other API businesses out there expose their SDK documentation along with quick start guides and examples. And I think from a developer point of view, it would be nice to add that to this repository too.

I really like Pulumi's setup. They utilize a build script that collects API documentation from each of the repositories and adds those Markdown-files to their website. Maybe something like that would work here as well?

I wouldn't do exactly like Pulumi since they convert comments from source code to Markdown in the same sequence as they are pulling them. In Swedbank Pay's case, I would suggest that every official SDK have a standardized docs/ folder. This would serve as documentation for the developers that find it directly on Github, but also could be rendered in HTML under developer.swedbankpay.com. I would have README.md that would be the introduction to the SDK (also for the HTML counterpart) and typical quickstart files and examples altogether.

I'd say something like this could work:

├ docs/
├── README.md
├── api/
│   ├── this-class.md
└── QUICKSTART.md

From this, a simple script could populate SDK documentation. Pulling down all docs/ folders periodically (or with every SDK release). Alternatively, one could deploy SDK documentation from every SDK. However, this would probably cause more headache.

What do you think of the idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions