Skip to content

vtnorton/sample-api-documentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Description

The "sample-api-documentation" project is a collection of markdown files that provide a structure for API documentation. It has been created based on the experience of a technical writer and aims to address common challenges faced by developers and technical writers when documenting APIs.

The documentation is divided into three main types: guides, reference, and changelog. Each type plays an important role in creating comprehensive and useful documentation.

Entrypoint

A nice entrypoint to read the documentation (in english) is the guides for creating a customer.

Guides

The "guides" section aims to provide information related to the business context of the API. It goes beyond simply listing information about each endpoint and explores the scenarios and workflows involved in using the API. This allows developers, usability experts, and product managers to understand what needs to be done to achieve specific goals.

A good guide should be understandable to both technical and non-technical individuals. It is important to consider ease of comprehension for different audiences.

Reference

The "reference" section is the technical core of the documentation. It provides specific details about endpoints, request and response formats, and authentication information.

In the endpoint section, each endpoint is described clearly and concisely, including the HTTP method, URL, and a brief summary of its purpose. The request and response sections explain the expected formats and data types required for interacting with the API. The authentication section covers the authentication methods necessary to access API resources.

Additionally, it is considered useful to include a prerequisites section, highlighting any configuration or steps required before starting to use the API. This can help prevent issues and ensure a smooth experience for developers who are only consulting the reference section.

Changelog

The "changelog" section is intended to highlight changes and updates made to the API over time. It is important to document modifications, additions, and removals of features.

By providing a changelog, you educate developers about new features and best practices for using them. It also allows them to understand the company's focus, future plans, and developer priorities. Additionally, listing resolved issues and known problems shows transparency and helps developers deal with potential challenges.

While the ideal scenario is to have an API without known problems, it is important to be transparent if there are any known issues. If there are known problems, it is recommended to list them only for APIs in beta stage to avoid confusion for users.

Contributing

I welcome contributions to the "sample-api-documentation" project. If you would like to contribute, there are several ways you can get involved:

  1. Create or Improve Documentation: If you notice any gaps or areas that can be enhanced in the existing documentation, please feel free to make the necessary changes and submit a pull request. Your insights and expertise are valuable in ensuring the documentation is comprehensive and accurate. To contribute, please follow these steps:

    1. Fork the repository to your GitHub account.
    2. Create a new branch for your contribution.
    3. Make the necessary changes or additions.
    4. Commit and push your changes to your branch.
    5. Submit a pull request to the main repository.
  2. Report Issues: If you encounter any issues, bugs, or have suggestions for improvements, please create an issue in the GitHub repository. Providing detailed information about the problem you encountered or the enhancement you propose will help us address it more effectively.

I appreciate your contributions and look forward to collaborating with you to improve the "sample-api-documentation" project.

Reporting Issues

If you come across any issues, bugs, or have suggestions for improvements, please create an issue in the GitHub repository. We kindly ask you to provide as much detail as possible, including steps to reproduce the issue or a clear description of the proposed enhancement. This will help us investigate and address the matter promptly.

We appreciate your effort in helping us identify and resolve any issues in the project. Together, we can make the "sample-api-documentation" even better.

License

This project is licensed under the MIT License.

About

A sample documentation for APIs containing an API Reference, one guide and changelog.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published