Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Writing REST API Documentation

Options
  • 08-04-2015 12:19pm
    #1
    Registered Users 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 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 Posts: 656 ✭✭✭Johnny Jukebox


    +1 for Swagger, its excellent.


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


    +1 for Swagger, its excellent.

    Agreed - the sandbox functionality is a big plus.


  • Advertisement
Advertisement