konveyor / move2kube-api

HTTP REST API for move2kube
https://move2kube.konveyor.io/
Apache License 2.0
6 stars 18 forks source link

fix: Openapi get workspaces fixes #140

Closed eloycoto closed 1 year ago

eloycoto commented 1 year ago

The openapi is not completed, this is an example output of my code:

$ --> curl http://localhost:8081/api/v1/workspaces | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   440  100   440    0     0   322k      0 --:--:-- --:--:-- --:--:--  429k
[
  {
    "id": "e7e905df-ed99-4430-804c-efa5bec94678",
    "name": "12313",
    "description": "123123",
    "timestamp": "2023-05-08T12:07:01.006582995Z",
    "project_ids": [
      "1e804dab-f516-460c-9ef5-a7b703958b3a"
    ],
    "inputs": {
      "001b0d9d-15ad-4855-a356-9bed3810a9b6": {
        "id": "001b0d9d-15ad-4855-a356-9bed3810a9b6",
        "name": "spring-helloworld-main.zip",
        "description": "",
        "timestamp": "2023-05-08T13:37:48.883095434Z",
        "type": "sources",
        "normalized_name": "spring-helloworld-main"
      }
    }
  }
]
eloycoto commented 1 year ago

@ashokponkumar please review.

github-actions[bot] commented 1 year ago

Thanks for making a pull request! 😃 One of the maintainers will review and advise on the next steps.