Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the full JSONRPC spec or ServiceDescription.json? #239

Closed
sandreas opened this issue Dec 19, 2021 · 2 comments
Closed

Where is the full JSONRPC spec or ServiceDescription.json? #239

sandreas opened this issue Dec 19, 2021 · 2 comments

Comments

@sandreas
Copy link

sandreas commented Dec 19, 2021

Hey,

I'm trying to find the http://www.xbmc.org/jsonrpc/ServiceDescription.json to automatically generate client code for my Kodi API client.

Loading my local Kodi instance JSONRPC specs file (http://my-kodi-host:8080/jsonrpc) shows the follwing response (abridged):

{
	"description": "JSON-RPC API of XBMC",
	"id": "http://xbmc.org/jsonrpc/ServiceDescription.json",
	"methods": {
		"..." : "..."
	},
	"...": "...",
	"version": "12.4.0"
}

The linked id (http://xbmc.org/jsonrpc/ServiceDescription.json) is not available online (I know, it is just an ID, but I would have expected, that it's still downloadable) and unfortunately the local JSONRPC specs file is incomplete. For example there is no mention of "Input.Back" (see https://kodi.wiki/view/JSON-RPC_API/v12#Input.Back).

I hope someone can help me out with that...

My Questions:

  • Is there a full specification available online?
  • If not, is it possible to get full specs from a local Kodi instance? (including "Input.Back")
  • If it is possible, how would I do that?

Thank you

sandreas

@pkscout
Copy link
Member

pkscout commented Dec 19, 2021

This is the repo for the web site and probably not quite where you wanted to ask this, but I see why you might have decided this was the right place. Generally questions like this are best done on our forums (https://forum.kodi.tv). Our Github stuff is mostly for reporting bugs and problems. Anyway, all the JSON specs are on the wiki at:

https://kodi.wiki/view/JSON-RPC_API

I'm going to go ahead and close this.

@pkscout pkscout closed this as completed Dec 19, 2021
@sandreas
Copy link
Author

sandreas commented Dec 19, 2021

Thank you for the quick response and the clarification.

Generally questions like this are best done on our forums (https://forum.kodi.tv). Our Github stuff is mostly for reporting bugs and problems.

Ok, thank you for pointing me into the right direction.

Anyway, all the JSON specs are on the wiki at:

https://kodi.wiki/view/JSON-RPC_API

While the wiki might be the right place for developers to see examples and human readable specs, unfortunately the wiki does not contain or link (at least I did not find it) a machine readable spec (e.g. https://datatracker.ietf.org/doc/html/draft-wright-json-schema), that can be used to autogenerate code from it.

I'm going to ask in the forum, but I would really appreciate ANY piece of information from ANYONE (Link, github repo, file, code snippet), that leads me to the official "one-and-only" FULL JSONRPC spec containing all types and methods. I've already spent hours searching for it without success...

Edit
Found at least parts of the source code searching the forum:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants