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

[Task]: Include last published version in the publish-package API #36524

Closed
subrata71 opened this issue Sep 24, 2024 · 0 comments
Closed

[Task]: Include last published version in the publish-package API #36524

subrata71 opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels
Backend This marks the issue or pull request to reference server code Packages Pod issues that belong to the packages pod Task A simple Todo

Comments

@subrata71
Copy link
Contributor

subrata71 commented Sep 24, 2024

SubTasks

  • Include the last published version and published packageId in the publish-package API

Request:

POST /api/v1/packages/{originPackageId}/publish

Response:

{
  "responseMeta": {
    "status": 200,
    "success": true
  },
  "data": {
    "status": true,
    "lastPublishedVersion": "0.0.4"
  },
  "errorDisplay": ""
}
  • Include the next version going to be published in the package details API

Here is a sample response
Request

GET /api/v1/packages/6678f7d7bfde3c270be3bd9f

Response

{
  "responseMeta": {
    "status": 200,
    "success": true
  },
  "data": {
    "packageData": {
      "id": "6678f7d7bfde3c270be3bd9f",
      "workspaceId": "66162e69ef121d3710c6f2ac",
      "name": "Pkg with private entity",
      "icon": "package",
      "color": "#9747FF1A",
      "customJSLibs": [],
      "nextVersion": "0.0.3",
      "userPermissions": [
        "publish:packages",
        "manage:packages",
        "export:packages",
        "read:packageModuleInstances",
        "read:packages",
        "create:modules",
        "delete:packages",
        "create:packageModuleInstances"
      ],
      "modifiedAt": "2024-06-24T04:37:07.774Z",
      "modifiedBy": "[email protected]",
      "lastPublishedAt": "2024-06-28T07:03:39.808Z"
    },
    "modules": [],
    "modulesMetadata": []
  },
  "errorDisplay": ""
}
@subrata71 subrata71 added Backend This marks the issue or pull request to reference server code Task A simple Todo Packages Pod issues that belong to the packages pod labels Sep 24, 2024
@subrata71 subrata71 self-assigned this Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend This marks the issue or pull request to reference server code Packages Pod issues that belong to the packages pod Task A simple Todo
Projects
None yet
Development

No branches or pull requests

1 participant