Updating an existing VersionEye project via API

The VersionEye API enables you to create a project via the API. You just need to send your project file via POST to this endpoint “/v1/projects.json” and VersionEye creates a new project for that and returns a JSON with the used libraries and the information if they are outdated.

There is already an AddOn for the Symfony Deverloper Toolbar:

https://github.com/mattsches/VersionEyeBundle

versioneyebundle_screenshot

And 1 for the Zend Dev. Toolbar:

https://github.com/Ocramius/VersionEyeModule

This modules are sending your composer.json file to the VersionEye server. Unfortunately the first version created with every post a new project at VersionEye. That is not the desired behavior. We added a new Endpoint to the API, which enables the API developer to update an existing project.

The process now looks like this. The first time you upload the composer.json file via POST to this resource: “/v1/projects.json“. In the response you get back an “project_key” for the project at VersionEye. Next time you send the composer.json file via POST to this new resource: “/v1/projects/{project_key}.json“.

Screen Shot 2013-03-18 at 4.06.24 PM

The new Endpoint “/v1/projects/{project_key}.json” doesn’t create a new project. It only updates an existing project. Please use this in future to update an existing project.

One thought on “Updating an existing VersionEye project via API

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s