wit icon indicating copy to clipboard operation
wit copied to clipboard

Feature request: Import API

Open jagreene opened this issue 9 years ago • 10 comments

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

jagreene avatar Jul 10 '17 07:07 jagreene

There is a workaround of sorts for now:

  1. POST /apps where the Authorization header can be taken from one of your existing apps.
  2. PUT /apps for any attributes, such as timezone.
  3. POST /entities
  4. 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

yegeniy avatar Jul 10 '17 14:07 yegeniy

Thanks for your feedback! Relabeling the issue as feature request for a proper /import API

blandinw avatar Jul 12 '17 20:07 blandinw

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

yegeniy avatar Jul 12 '17 22:07 yegeniy

@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

gorenbox avatar Jun 01 '18 10:06 gorenbox

Thanks for the feedback @gorenbox, we'll definitely consider it!

aforaleka avatar Jun 01 '18 21:06 aforaleka

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.

gorenbox avatar Jun 12 '19 20:06 gorenbox

Hi @gorenbox, we have prioritized it and will have it done in the near future. Thanks for your continued support in Wit!

aforaleka avatar Jun 17 '19 03:06 aforaleka

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 .

gorenbox avatar Jun 17 '19 03:06 gorenbox

The import API is added, you can find it in the doc: https://wit.ai/docs/http/20170307#post__import_link

FengyangZhang avatar Jun 22 '19 00:06 FengyangZhang

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 .

gorenbox avatar Jun 22 '19 03:06 gorenbox