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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

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,643 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,643 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: 665 ✭✭✭Johnny Jukebox


    +1 for Swagger, its excellent.


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


    +1 for Swagger, its excellent.

    Agreed - the sandbox functionality is a big plus.


  • Advertisement
Advertisement