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
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“.
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”