Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

'put' --from file/directory does not work #40

Open
cronik opened this issue Feb 20, 2014 · 5 comments
Open

'put' --from file/directory does not work #40

cronik opened this issue Feb 20, 2014 · 5 comments

Comments

@cronik
Copy link

cronik commented Feb 20, 2014

http://localhost:8080/oba/api/processes:> put 712 --from process_data.json
You should specify option (--data, --follow, --output) for this command

I think this is partly because "data" is a required argument

 Keyword:                  data
   Help:                   The JSON data to use as the resource.
   Mandatory:              true
   Default if specified:   '__NULL__'
   Default if unspecified: '__NULL__'

I'm using version 1.2.1.RELEASE

@dima767
Copy link

dima767 commented Mar 12, 2014

Yep. Same here. I checked the code and confirmed that mandatory --data param messes things up. In the code the --from branch is not reachable at all. Is there anyway to make 1.2.2.RELEASE available in homebrew?

@jbrisbin
Copy link
Contributor

I updated everything to Jackson 2.3 and cleaned things up, which should include a fix for this to make --data optional.

@jbrisbin
Copy link
Contributor

Getting ready for a 1.3.0 release and I'll update Homebrew then.

@dima767
Copy link

dima767 commented Mar 19, 2014

Thank you!

@pshahidi
Copy link

I'm trying to post several records at once using POST --form bulkfilr and cannot get it to work what should be the format inside this fileI put 10 lines/json simple objects like this {name:'S1"}, it says file uploaded succesfully but my entries not added to the collection

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants