concord icon indicating copy to clipboard operation
concord copied to clipboard

server: api for list project repositories with limit/offset

Open brig opened this issue 3 years ago • 0 comments

list repositories:

  • URI /api/v1/org/${orgName}/project/${projectName}/repository?filter=${filter}&offset=${offset}&limit=${limit}

  • Query parameters

    • filter: the repository name pattern;
    • limit: maximum number of records to return;
    • offset: starting index from which to return.
  • Method GET

  • Headers Authorization

  • Body none

  • Success response

    Content-Type: application/json
    
    [ {
       "id" : "6e868666-1efc-11ed-ad64-0242ac110003",
       "projectId" : "37994f62-1efc-11ed-99df-0242ac110003",
       "name" : "test",
       "url" : "https://123123123123/123123123",
        "branch" : "master",
         "disabled" : false,
         "triggersDisabled" : false
     } ]
    

new API for getting information about a project without repositories:

  • URI /api/v2/org/${orgName}/project/${projectName}

  • Method GET

  • Headers Authorization

  • Body none

  • Success response

    Content-Type: application/json
    
    {
      ...
    }
    

brig avatar Aug 18 '22 14:08 brig