mozilla-services / cliquet

CLIQUET IS NOW DEPRECATED use kinto.core instead
http://github.com/Kinto/kinto
Other
64 stars 16 forks source link

API Capabilities #628

Closed leplatrem closed 8 years ago

leplatrem commented 8 years ago

I suggest we expose something like this on the Python side for plugins:

config.add_api_capability("identifier", description="", documentation="")

It would raise an error if already defined for example

And shown in the root URL as a mapping:

"capabilities": {
  "auth-fxa": {
    "description": "Firefox Account authentication",
    "documentation": "http://github.com/mozilla-services/cliquet-fxa"
  }
}

@almet @n1k0 @Natim thoughts?

Natim commented 8 years ago

I totally like the idea :)

leplatrem commented 8 years ago

This is now open for review/merge :)

almet commented 8 years ago

r+wc

michielbdejong commented 8 years ago

Cool stuff!

Natim commented 8 years ago

Yes great :+1:

leplatrem commented 8 years ago

Thanks for your positive feedback!