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(rest): Update API create Release with LinkedRelease #2090

Merged

Conversation

tuannn2
Copy link
Contributor

@tuannn2 tuannn2 commented Aug 14, 2023

Please provide a summary of your changes here.

  • Which issue is this pull request belonging to and how is it solving it? (Refer to issue here)
  • Did you add or update any new dependencies that are required for your change?

How To Test?

  • Run command line:
curl 'https://sw360.org/api/releases' -i -X POST \
    -H 'Content-Type: application/hal+json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsic3czNjAtUkVTVC1BUEkiXSwidXNlcl9uYW1lIjoiYWRtaW5Ac3czNjAub3JnIiwic2NvcGUiOlsiYWxsIl0sImV4cCI6MTY5MjAwNDYyOSwiYXV0aG9yaXRpZXMiOlsiUkVBRCIsIldSSVRFIl0sImp0aSI6IkxoS1l1aEItbUJSeVV1QWNLT2FseXRSWW1yYyIsImNsaWVudF9pZCI6InRydXN0ZWQtc3czNjAtY2xpZW50In0.pObj6HM4dKGeEK0weAX8TLGt3Da9nrkXxFwbjdLsEylnRID1gDax_NonMYvHAI8gEqRzZtE7FJ2CAhveJiSIH8rwzDh8jzbJL-o0G3NRZylmYBtv4uAe8rbSkNrLuzRrjgtorQyl7AlUdwlAd4VoCVAeJ5iB1-kIgrrMrsFk-6K3yOtxSCF3IlMIbq8NuR-UthkiwM1DuQaBIF-Zcf5Dv8rJU-MQkAuKeqrrXxpo_SHsJqdBa4t59oTH5g_GtFEvKJw2Ww3dTzbmBf844JSmVcNx6eH7CV1DdhL6DcGXcMk_d4Bfz0vPKaHHunoIUvBgZ76RZM7SCYyP5q5PS2hrYw' \
    -d '{
    "name": "Spring Core",
    "version": "1.0",
    "componentId": "e1fe38c315494387bcb64319024bcde1",
    "releaseIdToRelationship": {
        "bfd4aa7ef56e470da33bc26fa75b6fbe": "REFERRED"
    }
}'

  • Expected Output
{
    "name": "Spring Core",
    "version": "1.0",
    "releaseIdToRelationship": {
        "bfd4aa7ef56e470da33bc26fa75b6fbe": "REFERRED"
    },
    "_links": {
        "sw360:component": {
            "href": "http://localhost:8080/resource/api/components/e1fe38c315494387bcb64319024bcde1"
        },
        "self": {
            "href": "http://localhost:8080/resource/api/releases/6bed1b93ebc54c8498a45f63d4e264b9"
        },
        "curies": [
            {
                "href": "http://localhost:8080/resource/docs/{rel}.html",
                "name": "sw360",
                "templated": true
            }
        ]
    }
}
  • UI

TestLinkedRelease

@KoukiHama KoukiHama added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for REST New-UI Level for the API and UI level changes for the new-ui labels Aug 14, 2023
@KoukiHama KoukiHama requested a review from ag4ums August 14, 2023 12:11
@rudra-superrr rudra-superrr self-assigned this Aug 16, 2023
@rudra-superrr
Copy link
Contributor

Testing was successful and code looks good.

image

@rudra-superrr rudra-superrr added ready ready to merge and removed needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Aug 16, 2023
@ag4ums ag4ums merged commit 8fc22fc into eclipse-sw360:main Aug 18, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New-UI Level for the API and UI level changes for the new-ui ready ready to merge REST
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants