How to add "description" to repository?
/v1/search endpoint would return a description field. I'm wondering how can I add this description field in the images I push to? Or do I need to go into the backend database and do it manually? Nothing in the documents show how to do that.
If you were using the hub, you could add a description manually on the web interface.
If not (like in standalone = True), there is no simple way to do that for now (eg: there is no API endpoint that allows you to send a description).
Indeed, you may edit the database manually.
On Tue, Sep 09, 2014 at 04:25:01PM -0700, Olivier Gambier wrote:
If not (like in
standalone = True), there is no simple way to do that for now (eg: there is no API endpoint that allows you to send a description).
Can you give odds on such an API endpoint existing in the future? Or on the likelyhood of y'all accepting a patch that added such and endpoint to this repository, even if that endpoint wasn't part of the closed-source index's API?
@wking
Yeah, would be cool.
What about adding that into search.py, and have a new endpoint like:
@app.route('/v1/search/metadata/<repo>', methods=['PUT']) (or anything better in the line) and that would manipulate the database directly.
I know it's a bit hackish, but at least it's clearly segregated. I would merge that.
Put otherwise: I can't make such a thing happen in the docker engine, so, that would be a "manual" endpoint that a UI (or a curl command) would access.