2023-08-09 01:10:33 +03:00
|
|
|
# List Projects And Branches Test
|
|
|
|
|
2024-10-08 23:23:34 +03:00
|
|
|
``` ucm :hide
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> project.create-empty project-one
|
|
|
|
scratch/main> project.create-empty project-two
|
|
|
|
scratch/main> project.create-empty project-three
|
2023-08-09 01:10:33 +03:00
|
|
|
project-one/main> branch branch-one
|
|
|
|
project-one/main> branch branch-two
|
|
|
|
project-one/main> branch branch-three
|
|
|
|
```
|
|
|
|
|
2024-10-08 23:23:34 +03:00
|
|
|
``` api
|
2023-08-09 01:10:33 +03:00
|
|
|
-- Should list all projects
|
|
|
|
GET /api/projects
|
|
|
|
|
|
|
|
-- Should list projects starting with project-t
|
|
|
|
GET /api/projects?prefix=project-t
|
|
|
|
|
|
|
|
-- Should list all branches
|
|
|
|
GET /api/projects/project-one/branches
|
|
|
|
|
|
|
|
-- Should list all branches beginning with branch-t
|
|
|
|
GET /api/projects/project-one/branches?prefix=branch-t
|
|
|
|
```
|