Skip to content

support repo URLs without 2 path segments in update-package API call #917

@ghost

Description

Git repositories like https://git.tuxed.net/php-yubitwee are not supported with the update-package API calls because it only has on path segment.

$ curl -XPOST -H'content-type:application/json' 'https://packagist.org/api/update-package?username=fkooman&apiToken=<TOKEN>' -d'{"repository":{"url":"https://git.tuxed.net/php-yubitwee"}}'
{"status":"error","message":"Could not parse payload repository URL"}

Is there a way to support this without me modifying my Git server directory structure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions