Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(platform-server): take snapshot restful api #149

Merged
merged 1 commit into from Oct 19, 2022

Conversation

EYHN
Copy link
Member

@EYHN EYHN commented Oct 17, 2022

curl --location --request GET \
'http://localhost:3000/api/v1/take-snapshot?projectId=anything&page=perfsee&env=default&profile=Desktop' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Response:

{
    "id": 68,
    "status": 0,
    "startedAt": null,
    "createdAt": "2022-10-16T23:10:26.884Z",
    "issuer": "cneyhn@gmail.com",
    "hash": null,
    "title": null,
    "trigger": 0,
    "reports": [
        {
            "id": 104,
            "createdAt": "2022-10-16T23:10:26.900Z",
            "status": 0,
            "host": null,
            "page": {
                "id": 1,
                "name": "perfsee",
                "url": "https://slardar.bytedance.net/perfsee/",
                "isCompetitor": false,
                "isTemp": false,
                "isE2e": true
            },
            "profile": {
                "id": 1,
                "name": "Desktop",
                "device": "no",
                "bandWidth": "no"
            },
            "env": {
                "id": 1,
                "name": "default",
                "zone": "China"
            }
        }
    ]
}

@perfsee
Copy link

perfsee bot commented Oct 17, 2022

perfsee

Bundle main

diff ------------------- Bundle Size Diff -------------------------

@@                       EntryPoint: main                        @@
##                       main …t-restful-api                 +/- ##
===================================================================
= Bundle               2.8 MB         2.8 MB                       
= Initial JS          1.05 MB        1.05 MB                       
= Initial CSS             0 B            0 B                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
= Assets                   57             57                       
= Chunks                   56             56                       
= Packages                 73             73                       
= Duplicates                0              0                       

@codecov
Copy link

codecov bot commented Oct 17, 2022

Codecov Report

Merging #149 (b4c5a48) into main (d9acf02) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #149   +/-   ##
=======================================
  Coverage   80.36%   80.36%           
=======================================
  Files         203      203           
  Lines       14832    14832           
  Branches      713      713           
=======================================
  Hits        11919    11919           
  Misses       2886     2886           
  Partials       27       27           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@EYHN EYHN force-pushed the feat/take-snapshot-restful-api branch from 787f98c to b4c5a48 Compare October 18, 2022 02:59
@forehalo forehalo merged commit a7e09af into main Oct 19, 2022
@forehalo forehalo deleted the feat/take-snapshot-restful-api branch October 19, 2022 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants