konveyor / move2kube-api

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

fix: openapi for getprojects fixes #141

Closed eloycoto closed 1 year ago

eloycoto commented 1 year ago

The API spec is not as should be:

$ --> curl -s http://localhost:8081/api/v1/workspaces/945d443d-564b-4a11-b26e-d3c5ea90189c/projects | jq .
[
  {
    "id": "ddf7fed3-86ab-4a56-b97a-f31a21c7b3cb",
    "name": "test-project",
    "description": "",
    "timestamp": "2023-05-09T07:59:14.628527522Z",
    "inputs": {
      "b8ba6377-1511-484a-87cb-e67ad03ff84e": {
        "id": "b8ba6377-1511-484a-87cb-e67ad03ff84e",
        "name": "kuard.yaml",
        "description": "",
        "timestamp": "2023-05-09T08:14:40.490396702Z",
        "type": "configs",
        "normalized_name": "kuard"
      }
    },
    "status": {
      "configs": true,
      "stale_plan": true
    }
  },
  {
    "id": "e8763b4b-637f-44b4-99fd-ee72eb7d6003",
    "name": "My new project",
    "description": "",
    "timestamp": "2023-05-09T09:49:22.146056817Z"
  },
  {
    "id": "26051a71-8fad-4970-9887-eb1038cd3912",
    "name": "My new project",
    "description": "",
    "timestamp": "2023-05-09T10:11:11.113953137Z",
    "inputs": {
      "d4b2844b-64d6-49b8-9a0f-d6b802cface2": {
        "id": "d4b2844b-64d6-49b8-9a0f-d6b802cface2",
        "name": "",
        "description": "",
        "timestamp": "2023-05-09T10:11:39.265053268Z",
        "type": "reference",
        "normalized_name": ""
      }
    },
    "status": {
      "plan": true,
      "plan_error": false,
      "planning": false,
      "reference": true,
      "stale_plan": false
    }
  },
  {
    "id": "353c20bc-2007-49d4-8bae-843f8898ad02",
    "name": "eloy",
    "description": "ased",
    "timestamp": "2023-05-09T10:15:16.611248773Z",
    "inputs": {
      "d4b2844b-64d6-49b8-9a0f-d6b802cface2": {
        "id": "d4b2844b-64d6-49b8-9a0f-d6b802cface2",
        "name": "",
        "description": "",
        "timestamp": "2023-05-09T10:15:23.872345898Z",
        "type": "reference",
        "normalized_name": ""
      }
    },
    "status": {
      "plan": true,
      "plan_error": false,
      "planning": false,
      "reference": true,
      "stale_plan": false
    }
  },
  {
    "id": "dcd5ffa9-b8a7-4c65-93e9-73b52ca17e87",
    "name": "My new project",
    "description": "",
    "timestamp": "2023-05-09T10:16:28.191059633Z"
  },
  {
    "id": "910bec34-3b5c-4122-884f-6101b3674a37",
    "name": "My new project",
    "description": "",
    "timestamp": "2023-05-09T10:17:01.451205681Z"
  },
  {
    "id": "ce3320b5-a8b8-4bd0-a919-95c7c9e19028",
    "name": "My new project",
    "description": "",
    "timestamp": "2023-05-09T10:22:13.391187015Z"
  }
]
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.