unison/unison-src/transcripts/api-list-projects-branches.output.md
Greg Pfeil 179b8d1bb7
Terminate API code blocks correctly
They were missing trailing newlines, so as you can see in the diff, some
transcripts had invalid output.
2024-07-10 14:09:11 -06:00

953 B

List Projects And Branches Test

--  Should list all projects
GET /api/projects
[
    {
        "projectName": "project-one"
    },
    {
        "projectName": "project-three"
    },
    {
        "projectName": "project-two"
    },
    {
        "projectName": "scratch"
    }
]
--  Should list projects starting with project-t
GET /api/projects?prefix=project-t
[
    {
        "projectName": "project-three"
    },
    {
        "projectName": "project-two"
    }
]
--  Should list all branches
GET /api/projects/project-one/branches
[
    {
        "branchName": "branch-one"
    },
    {
        "branchName": "branch-three"
    },
    {
        "branchName": "branch-two"
    },
    {
        "branchName": "main"
    }
]
--  Should list all branches beginning with branch-t
GET /api/projects/project-one/branches?prefix=branch-t
[
    {
        "branchName": "branch-three"
    },
    {
        "branchName": "branch-two"
    }
]