This commit is contained in:
parent
9c31bb2611
commit
388ec47078
@ -18,4 +18,4 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
DATABASE_URI: "postgresql://mealsapi:meals@db:5432/mealsdb"
|
DATABASE_URI: "postgresql://mealsapi:meals@db:5432/mealsdb"
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8080:8080"
|
- "127.0.0.1:8080:8080"
|
||||||
|
@ -3,8 +3,8 @@ from flask_restful import Resource
|
|||||||
from flask import request, current_app, abort
|
from flask import request, current_app, abort
|
||||||
from marshmallow import ValidationError
|
from marshmallow import ValidationError
|
||||||
|
|
||||||
from ..model import db, Meal
|
from model import db, Meal
|
||||||
from ..schemas import MealSchema
|
from schemas import MealSchema
|
||||||
|
|
||||||
|
|
||||||
class MealBaseResource(Resource):
|
class MealBaseResource(Resource):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from .marshm import ma
|
from .marshm import ma
|
||||||
from ..model import Ingredient
|
from model import Ingredient
|
||||||
|
|
||||||
|
|
||||||
class IngredientSchema(ma.ModelSchema):
|
class IngredientSchema(ma.ModelSchema):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from .marshm import ma
|
from .marshm import ma
|
||||||
from ..model import Meal
|
from model import Meal
|
||||||
from .ingredientschema import IngredientSchema
|
from .ingredientschema import IngredientSchema
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user