ADD requirements.txt .
RUN python -m pip install -r requirements.txt
ADD . /app
RUN useradd appuser && chown -R appuser /app
CMD ["gunicorn", "--bind", "0.0.0.0:5001", "app:app"]
group. I would like to send a request that has a params data for the fields that I only want to get from a Person model (e.g.
group). It's easy to implement for unnested fields but for example, I further want to specify the fields that I want for the
groupfield (e.g. I only want the group ID). I'm not asking for a code, rather a stable structure/architecture on how to implement this. Thank you for the help!