disqus-php icon indicating copy to clipboard operation
disqus-php copied to clipboard

Optimize Interfaces.json?

Open ProLoser opened this issue 14 years ago • 1 comments

I realize this may seem a bit OCD, but I actually made an API parser plugin for CakePHP (haven't made a disqus one yet though). I made use of an 'api map' which is the equivalent to your interfaces file, however I had only 2 thoughts:

Wouldn't it reduce the footprint to 1. make the 'required' field optional and 2. group interfaces under the method type?

Here is one of my examples: https://github.com/ProLoser/CakePHP-Github/blob/master/config/github.php

Although there is extra information in there that I use but the main idea is the same, things are just grouped by CRUD.

Otherwise, feel free to close this ticket, it was just a thought that popped into my head reviewing your code for integration, heh.

ProLoser avatar Oct 30 '11 18:10 ProLoser

Both of the points are good:)

We'll be revisiting the interfaces.json very soon (as we update our plugins), so I'll keep this open for when we address that.

dcramer avatar Oct 31 '11 07:10 dcramer