Skip to content

Add get project version endpoint#74

Merged
varmar05 merged 12 commits into
developfrom
add_get_version_by_id
May 4, 2023
Merged

Add get project version endpoint#74
varmar05 merged 12 commits into
developfrom
add_get_version_by_id

Conversation

@varmar05
Copy link
Copy Markdown
Collaborator

@varmar05 varmar05 commented May 4, 2023

Add new public endpoint to get project version by its name, e.g.

GET /v1/project/version/11bb22d8-578f-448a-a06b-0c55b1a54285/v4
{
  "author": "member",
  "changes": {
    "added": [
      {
        "checksum": "a3a9ad153679116a50013e2a92d3fbfcc28040a0",
        "mtime": "2023-05-04T08:51:42.793089Z",
        "path": "test.txt",
        "size": 27
      }
    ],
    "removed": [],
    "updated": []
  },
  "changesets": {},
  "created": "2023-05-04T08:51:42Z",
  "name": "v4",
  "namespace": "my-workspace",
  "project_name": "test",
  "project_size": 27,
  "user_agent": "Mozilla/5.0"
}

plus ensure request for project with id is resilient to incorrect data type.

@varmar05 varmar05 requested review from MarcelGeo and harminius May 4, 2023 09:00
Comment thread server/mergin/sync/public_api.yaml
Copy link
Copy Markdown
Contributor

@harminius harminius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine

Comment thread web-app/packages/lib/src/modules/project/views/VersionDetailView.vue Outdated
@varmar05 varmar05 force-pushed the add_get_version_by_id branch from 7c1768a to 995877c Compare May 4, 2023 11:27
@varmar05 varmar05 merged commit 5bed4c7 into develop May 4, 2023
@MarcelGeo MarcelGeo deleted the add_get_version_by_id branch June 5, 2023 09:33
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.

3 participants