ユーザー追加API Bug fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
FROM python:3.8
|
FROM python:3.11.4
|
||||||
|
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ def sign_up_new_user(db, email: str, password: str, firstname: str,lastname: str
|
|||||||
schemas.UserCreate(
|
schemas.UserCreate(
|
||||||
email=email,
|
email=email,
|
||||||
password=password,
|
password=password,
|
||||||
firstname = firstname,
|
first_name = firstname,
|
||||||
lastname = lastname,
|
last_name = lastname,
|
||||||
is_active=True,
|
is_active=True,
|
||||||
is_superuser=False,
|
is_superuser=False,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import base64
|
|||||||
|
|
||||||
PROJECT_NAME = "KintoneAppBuilder"
|
PROJECT_NAME = "KintoneAppBuilder"
|
||||||
|
|
||||||
SQLALCHEMY_DATABASE_URI = "postgres://maxz64:m@xz1205@alicornkintone.postgres.database.azure.com/postgres"
|
#SQLALCHEMY_DATABASE_URI = "postgres://maxz64:m@xz1205@alicornkintone.postgres.database.azure.com/postgres"
|
||||||
#SQLALCHEMY_DATABASE_URI = "postgres://kabAdmin:P@ssw0rd!@kintonetooldb.postgres.database.azure.com/postgres"
|
SQLALCHEMY_DATABASE_URI = "postgres://kabAdmin:P@ssw0rd!@kintonetooldb.postgres.database.azure.com/postgres"
|
||||||
|
|
||||||
API_V1_STR = "/k/v1"
|
API_V1_STR = "/k/v1"
|
||||||
|
|
||||||
|
|||||||
@@ -20,9 +20,12 @@ class UserOut(UserBase):
|
|||||||
|
|
||||||
|
|
||||||
class UserCreate(UserBase):
|
class UserCreate(UserBase):
|
||||||
|
email:str
|
||||||
password: str
|
password: str
|
||||||
first_name: str
|
first_name: str
|
||||||
last_name: str
|
last_name: str
|
||||||
|
is_active:bool
|
||||||
|
is_superuser:bool
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
orm_mode = True
|
orm_mode = True
|
||||||
|
|||||||
@@ -19,9 +19,7 @@ app = FastAPI(
|
|||||||
)
|
)
|
||||||
|
|
||||||
origins = [
|
origins = [
|
||||||
"http://localhost:9000",
|
"*"
|
||||||
"http://localhost",
|
|
||||||
"http://localhost:8080",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
KAB_BACKEND_URL="http://127.0.0.1:8000/"
|
KAB_BACKEND_URL="https://kab-backend.azurewebsites.net/"
|
||||||
|
#KAB_BACKEND_URL="http://127.0.0.1:8000/"
|
||||||
|
|
||||||
|
|||||||
0
sample2.json
Normal file
0
sample2.json
Normal file
Reference in New Issue
Block a user