GithubHelp home page GithubHelp logo

dssapidocumentation's Introduction

API Documentation Template

This a documentation template for GSA APIs provided by GSA Digital Services to provide a consistent look and feel for GSA APIs.

Thanks to CFPB team for creating this model and for furthering open source in government. Additional thanks to the 18F and SAM (IAE) teams as well as several in the private sector.

Using This Template In GitHub Pages

Currently this template is configured to work on GitHub pages. The easiest way to use this template is by cloning this repo and using it as a starting point for your own project.

The source URL for this repository (used in both methods below) is: https://github.com/GSA/api-documentation-template.git

Cloning this repository from the Command Line

Cloning this repository from the Github web interface

  • From your github home page, select "start a project" or "new repository".
  • Enter the appropriate information for the new repository you are creating. Do not select "initialize this repository with readme".
  • On the next page, select "import code from another repository".
  • The next page is titled "Import Your Project To Github". In the box below "Your old repository’s clone URL", enter the source URL for this repository (listed above). Click "begin import".
  • When the import is completed, you should see the "import complete" message.

We recommend that your API documentation reside in a dedicated repository -- separate from your API code. However, these pages reside in the "docs" so that they can also be included inside a repo with API code. Either way, you will need to update the Settings/Github Pages "source" to use "master/docs".

Making the cloned repository your own

  • Modify the readme.md in the master branch with the name and details of your own documentation.
  • Enable the GitHub pages web site by going to "Settings". In the "GitHub Pages" section, select "Master Branch /docs folder" and click the save button.
  • GitHub will display a URL to your documentation web site. You will need to add "api-docs/" to this path to access the web site.
  • You can add the link to this web page on the "code" tab of your repository (see this repo for an example). Go to the "code" tab of your repository, and click the "edit" button toward the top of the page. Enter the URL to your documentation (remember to add "api-docs/") in the "website" box, and add your own description in the "Description" box. Click save. You should see the link at the top of the "code" tab.

Note About The API Calls

The "API Calls" tab of this documentation is a demonstration of the Swagger UI to provide interactive sample calls to the API. Most of this resides in the "console" sub-folder.

This is using the Open API Specification. Other options provide similar modeling and tooling, including RAML, API Blueprint, and several more.

Helping us improve

Please feel free to add issues and pull requests for any recommendations you think would be worthwhile for all users of the template.

dssapidocumentation's People

Contributors

sudhangisuthrave avatar neelmadhavsphadke avatar

Stargazers

Lori Davis avatar OnsiDSS avatar

Watchers

Gray Brooks avatar James Cloos avatar  avatar  avatar George Baden avatar  avatar Peter Nguyen avatar  avatar Mike Tanski avatar  avatar

dssapidocumentation's Issues

Accessibility Issues

There are a few accessibility issues with this site.

Lots of contrast issues. WAVE & Accessibility Insights both report:

Element has insufficient color contrast of 4.44 (foreground color: #75787b, background color: #ffffff, font size: 16.5pt (22px), font weight: normal). Expected contrast ratio of 4.5:1

Element has insufficient color contrast of 4.35 (foreground color: #0072ce, background color: #f1f2f2, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1

and with language:

The <html> element does not have a lang attribute

rename repo to add hyphens or underscores

It's a small thing but worth doing early on while it's easy.

I'd really recommend renaming the repo from DSSAPIDocumentation to DSS_API_Documentation or DSS-API-Documentation. The difference in readability will pay dividends for a long time to come.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.