Right now the allura API docs are at https://sourceforge.net/p/forge/documentation/Allura%20API/ They should be moved to Allura itself.
We should also consider writing the API docs with RAML which looks very nice to me. Simple and readable, has composition for things like "pagination" which apply to multiple endpoints. With RAML we could also show interactive documentation with "try it live" functionality at http://www.apihub.com/
Anything we can use to encourage experimentation with Allura's API would be great. I think the big three options would be Swagger, RAML, or iodocs
I've never used RAML, but it looks like a great option.
Looks like apihub.com has moved. I set up RAML browse/try functionality using Anypoint from Mulesoft for another project. Example: https://anypoint.mulesoft.com/apiplatform/sourceforge/#/portals/organizations/98f11a03-7ec0-4a34-b001-c1ca0e0c45b1/apis/13878/versions/14637/pages/16345 The site was a little confusing, you only need to use a little part of it to set up the RAML viewing.
I've attached the source RAML files in a single zip file that can be imported directly via mulesoft's api designer, or by your own instance.
There is also a live API Portal that includes some extra pages (like the API overview page).
There are still a few rough edges, but hopfully through the process of QA we can begin to refine them :)
I am looking at this and putting it into git, as well as making some updates myself.
This is in git now and I've made several changes, see branch
db/6797
and please review those. A few more things we should do that I'll hand back to you for:FIXME
in api.ramlFollowup for separate tickets:
/p/{project}/_nav.json
? Would need to move/rest/
from the base URI into the heirarchy, but that'd be good anyway so it shows up in the UI (it seems slightly hidden to me right now)The changes look really good!
Review at: hs/6797
You can also see the online portal here .
Follow-up tickets: [#7965] [#7966] [#7968]
Related
Tickets:
#7965Tickets: #7966
Tickets: #7968
Final portal URL is: https://anypoint.mulesoft.com/apiplatform/forge-allura/#/portals/organizations/86c00a85-31e6-4302-b36d-049ca5d042fd/apis/32370/versions/33732