Feature request: Import API
Do you want to request a feature, report a bug, or ask a question about wit? Feature
What is the current behavior? POST to /app doesn't allow .zip payloads
What is the expected behavior? It would be awesome to be able to programmatically upload exported apps. This would allow us to automate our back up process and allow us to create new stores by modifying and posting the exported zip files
There is a workaround of sorts for now:
- POST /apps where the Authorization header can be taken from one of your existing apps.
- PUT /apps for any attributes, such as timezone.
- POST /entities
- POST /samples
That should get you to the same place.
The only problem is that creating the samples is not the easiest job. I'm planning on making some small modifications to this script to generate the samples to POST, but am still unsure of how to add built-in entities to the POST /entities and POST /samples endpoints
Thanks for your feedback! Relabeling the issue as feature request for a proper /import API
Ignore my comment. This API tutorial should be enough to get started until a /import API is created:
https://github.com/wit-ai/wit-api-only-tutorial
@stopachka @blandinw If i may give my thoughts about the import api.... I think the main thing is that it should be an append operation. That way you can easily add to an existing model (which is the main use case), or create a new one, by appending to an empty model. Thanks again for all the great work on the apis lately
Thanks for the feedback @gorenbox, we'll definitely consider it!
Hi, @stopachka @blandinw would it be possible to update about the import api. I think we discussed it about a year ago here and in some other threads.
Hi @gorenbox, we have prioritized it and will have it done in the near future. Thanks for your continued support in Wit!
Wow.
Thank u!!
On Mon, Jun 17, 2019, 06:15 Aleka C [email protected] wrote:
Hi @gorenbox https://github.com/gorenbox, we have prioritized it and will have it done in the near future. Thanks for your continued support in Wit!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wit-ai/wit/issues/658?email_source=notifications&email_token=AGCUCDL7HYCN66KFDZHNIDDP236UPA5CNFSM4DSJX2F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZ5SZI#issuecomment-502520165, or mute the thread https://github.com/notifications/unsubscribe-auth/AGCUCDO5CNYQQRXPI6W5CYDP236UPANCNFSM4DSJX2FQ .
The import API is added, you can find it in the doc: https://wit.ai/docs/http/20170307#post__import_link
Thank u so so much!!
On Sat, Jun 22, 2019, 03:28 Fengyang Zhang [email protected] wrote:
The import API is added, you can find it in the doc: https://wit.ai/docs/http/20170307#post__import_link
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wit-ai/wit/issues/658?email_source=notifications&email_token=AGCUCDMLMN3IVC3L4GIZWPDP3VWZ3A5CNFSM4DSJX2F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJ34VY#issuecomment-504610391, or mute the thread https://github.com/notifications/unsubscribe-auth/AGCUCDIV5U3KN2XQSEH5SE3P3VWZ3ANCNFSM4DSJX2FQ .