Team Onboarding Scans

Get all Team Onboarding scans

Get all Team Onboarding scan resources.

GET /api/v2/team-onboarding/scans/

Query Parameters

Fields Required Description
page_size No Page size of the returned response. Set to 10 by default.
GET /api/v2/team-onboarding/scans/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
    "count": 2,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 1,
            "result": {
                "9": {
                    "answers": [
                        "A707"
                    ],
                    "file_list": [
                        "12/manage.py",
                        "12/example_project/urls.py",
                        "12/example_project/__init__.py",
                        "12/example_project/wsgi.py",
                        "12/example_project/asgi.py",
                        "12/example_project/settings/__init__.py",
                        "12/example_project/settings/settings.py"
                    ]
                },
                "102": {
                    "answers": [
                        "A731"
                    ],
                    "file_list": [
                        "12/example_project/urls.py",
                        "12/apps/users/serializers.py",
                        "12/apps/users/views.py"
                    ]
                }
            },
            "status": "REPO_DELETE_SUCCESS",
            "message": null,
            "updated": "2024-02-29T17:47:02.599744-05:00",
            "project": 1,
            "repo": 1,
            "job_id": null
        },
        {
            "id": 2,
            "result": null,
            "status": "TASK_QUEUED",
            "message": null,
            "updated": "2024-02-29T17:20:47.258151-05:00",
            "project": 1,
            "repo": 1,
            "job_id": "063cb253-60f7-43b4-9f13-1516323d7a4d"
        }
    ]
}

Get a specific Team Onboarding scan

Returns a single Team Onboarding scan resource, as specified by the URL parameter.

GET /api/v2/team-onboarding/scans/{scan_id}/

URL Parameters

Parameter Description
scan_id The ID of an existing Team Onboarding scan to be retrieved
GET /api/v2/team-onboarding/scans/1/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
    "id": 1,
    "result": {
        "9": {
            "answers": [
                "A707"
            ],
            "file_list": [
                "12/manage.py",
                "12/example_project/urls.py",
                "12/example_project/__init__.py",
                "12/example_project/wsgi.py",
                "12/example_project/asgi.py",
                "12/example_project/settings/__init__.py",
                "12/example_project/settings/settings.py"
            ]
        },
        "102": {
            "answers": [
                "A731"
            ],
            "file_list": [
                "12/example_project/urls.py",
                "12/apps/users/serializers.py",
                "12/apps/users/views.py"
            ]
        }
    },
    "status": "REPO_DELETE_SUCCESS",
    "message": null,
    "updated": "2024-02-29T17:47:02.599744-05:00",
    "project": 1,
    "repo": 1,
    "job_id": null
}

Run a Team Onboarding Scan

Initiate and run a new Team Onboarding scan using an existing Team Onboarding connection.

POST /api/v2/team-onboarding/scans/

Payload

Fields Required Description
repo Yes The repo ID of an existing Team Onboarding connection
POST /api/v2/team-onboarding/scans/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"

{
  "repo": 1
}
HTTP/1.1 201 CREATED
Content-Type: application/json

{
  "id": 2
}

results matching ""

    No results matching ""