Skip to content

Project scaffold + Connexion app (create project skeleton and Connexion app with openapi.yaml) #1

@raggopaluni

Description

@raggopaluni

Goal:

  • Create repo skeleton, add Connexion Flask app and openapi.yaml from the provided snippet.
  • Make GET /orders/{order_id} and POST /orders endpoints stub return sample data.

Tasks:

  • Add openapi.yaml to repo root.
  • Implement api/app.py with Connexion app factory that loads openapi.yaml
  • Implement api/orders.py with stub functions:
    • create_order(body) -> returns 201 with {"order_id": "tmp-uuid", "status": "created"}
    • get_order(order_id) -> returns 200 with sample JSON
  • Add README with run instructions.
  • Add requirements.txt (connexion, flask, pydantic (opt), python-dotenv)

Acceptance criteria:

  • docker-compose not required yet. python -m api.app or flask run starts service.
  • Calling endpoints returns sample JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions