We are using MediaWiki for the prose documentation of our C#/Java/Javascript programming API. The API methods and properties are listed on about 20 wiki pages grouped by topic (e.g. frontend/client-server-interaction/backend).
What I need is an alphabetic index of all API methods similar to Sphinx API Index. How to achieve this?
Put your 20 wiki pages in the "API" category by adding [[Category:API]] to the page's wikitext. Then, when you visit the Category:API page (http://your-wiki-url/Category:API), you'll see all those API pages listed.
Related
I am looking at a dart library that hits a specific vimeo url...
https://player.vimeo.com/video/{videoId}/config
Hitting this url returns a json file with a lot of fields. I am trying to find any docs that give a description of all of these fields. I have been unable to do so at this point.
When I got to the Vimeo API reference, it refers to language specific apis like the python api or the javascript api, not the restful api (or at least the portion I am looking for).
Does anyone know how to find docs that refer to the json returned from the previously listed URL?
I think you want to go to the API reference docs:
https://developer.vimeo.com/api/reference/videos#search_videos
On that page you can scroll down and review the Response (there are three areas to click: Details, Example and Reference). You want reference.
I'm building a web app that is using httpRequests to query the Wikipedia API. Ideally I need the API call to return at least 12 random articles that have BOTH a thumbnail and an extract, but I'm struggling to work out if this is possible.
My query url at the moment is:
http://en.wikipedia.org/w/api.php?action=query&format=json&prop=extracts%7Cpageimages&generator=random&redirects=1&exlimit=max&exintro=1&explaintext=1&piprop=thumbnail&pithumbsize=300&pilimit=max&pilicense=any&grnnamespace=0&grnfilterredir=nonredirects&grnlimit=100&origin=*
It returns plenty of articles but of the 20 that I can return the extracts for not all of those are guaranteed to also have thumbnails (it's usually <8). Is there any way to query the API for only those articles that have both an extract and a thumbnail?
Can we create a Custom category?
Is there any API available for that?
No. The Categories on Vimeo are hard-coded and are intended for discovery of public videos. API documentation for Categories is found on the Vimeo Developer Site.
If you want to do some kind of self-categorization for organization purposes, try using Folders instead. API docs are also on the dev site.
How would I go about getting a random article within a category using the WikiMedia API?
Documentation on getting a random article can be found here.
Documentation on getting a list of pages that belong to a given category, ordered by page sort title can be found here.
There's no way to get it from the API directly, so your best option is to get members of the category and then randomise on the client or on the server. This is implemented on the Special:RandomInCategory page.
I am interested in developing an enterprise app for Box.com . I would like to be able to categorize documents by additional metadata, for example a client id.
Is there any way to do this within the Box API v2? Could this be done with tags? (I can't find much about tags in the API Documentation.)
Tags seem like a reasonable solution for this. However, they haven't yet been released in v2 but will be eventually. You can probably try using the v1 tags methods in the interim.