Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Writing REST API Documentation

  • 08-04-2015 11:19AM
    #1
    Registered Users, Registered Users 2 Posts: 279 ✭✭


    I am building a REST api and I need to document it clearly.

    Anyone have any good info / tutorials on how to write and structure good clean documentation?


Comments

  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    What are you writing your API in?

    It might be worth looking at some of the API doc generators:

    https://github.com/apidoc/apidoc
    http://swagger.io/


  • Registered Users, Registered Users 2 Posts: 279 ✭✭stunmer


    Cheers,

    Writing the API in PHP but looking for language independent JSON API documentation.


  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    The documentation produced by the API doc generators will be language independent.

    It's the production of the documentation itself that's automated. You make sure your code is commented in a specific format, those comments are then assembled into documentation by the generators. It should mean keeping your documentation up-to date is much easier as your API evolves, also means your documentation looks better/familiar when you share it.


  • Registered Users, Registered Users 2 Posts: 679 ✭✭✭Johnny Jukebox


    +1 for Swagger, its excellent.


  • Registered Users, Registered Users 2 Posts: 2,088 ✭✭✭henryporter


    +1 for Swagger, its excellent.

    Agreed - the sandbox functionality is a big plus.


  • Advertisement
Advertisement