https://github.com/georgi2704/pydantic2-forms-poc
poc to test pydantic-forms with pydantic2
https://github.com/georgi2704/pydantic2-forms-poc
Last synced: 3 months ago
JSON representation
poc to test pydantic-forms with pydantic2
- Host: GitHub
- URL: https://github.com/georgi2704/pydantic2-forms-poc
- Owner: Georgi2704
- Created: 2023-09-19T16:55:47.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T11:53:58.000Z (about 2 years ago)
- Last Synced: 2025-03-12T02:02:48.212Z (7 months ago)
- Language: Python
- Size: 33.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pydantic2-forms-poc
This project runs on Python 3.10
1.Install the required packages
```bash
pip install -r requirements.txt
```2. Run the webserver
```bash
./start.sh dev
```Docs are found on
http://127.0.0.1:8080/v1/docs/Test form on
http://localhost:8080/v1/forms/minimal_example_formTest 510 FormNotCompleteError:
```json
[
{
"first_name": "Georgi",
"last_name": "Manev",
"text": "Hallo allemaal",
"choice": "Option A",
"email": "abc@xxx.com",
"maybe_a_number": 2
},
]
```Test 201 Created:
```json
[
{
"first_name": "Georgi",
"last_name": "Manev",
"text": "Hallo allemaal",
"choice": "Option A",
"email": "abc@xxx.com",
"maybe_a_number": 2
},
{
"age": 33
}
]
```