Hi Artifactorians,

We are currently evaluating Artifactory on a trial license and I have been
playing with the REST api to see if we can achieve what we need.

Now to my problem; I can make a get call to 'api/repositories/test-repo' and
get the json config back no problem.  However, making a post call to
'api/repositories/test-repo' with an updated config returns a 404 with the
message "No repository test-repo was found."

I've set up Artifactory to not allow anonymous access and set a password
encryption policy of required.  I have got my encrypted password and am
using that to authenticate my calls to the api.  This all appears to be
working fine.  I am also set up as an admin so should have access to all the
repositories.

*The GET call (responds 200):*
GET http://xxx/artifactory/api/repositories/test-repo HTTP/1.1
Authorization: Basic
ZGFycnlsLmhlYXRoOntERVNlZGV9dTNpN2lCd0hnUk43bUJmZ29Zclk4QT09
Host: xxx

*The POST call (responds 404):*
POST http://xxx/artifactory/api/repositories/test-repo HTTP/1.1
Authorization: Basic
ZGFycnlsLmhlYXRoOntERVNlZGV9dTNpN2lCd0hnUk43bUJmZ29Zclk4QT09
Content-Type: application/json; charset=utf-8
Host: xxx
Content-Length: 920
Expect: 100-continue
Connection: Keep-Alive

{
  "url": "http://jcenter.bintray.com";,
  "key": "test-repo",
  "rclass": "remote",
  "description": "test",
  "notes": null,
  "includesPattern": "**/*",
  "excludesPattern": null
}

Any ideas on why I am receiving a 404 for the post call to a repository that
definitely does exist?

Thanks,
Darryl



--
View this message in context: 
http://forums.jfrog.org/REST-api-repositories-post-returning-404-tp7579685.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to