Skip to content

Releases: benavlabs/FastAPI-boilerplate

0.3.3

03 Nov 04:19
4ffd63c

Choose a tag to compare

Summary

0.3.3

removed read deleted users endpoint

What's Changed

Full Changelog: v0.3.2...v0.3.3

0.3.2

03 Nov 04:01
94b878f

Choose a tag to compare

Summary

0.3.2

schema_to_select now also accepts a list of column names

What's Changed

  • schema_to_select now also accepts a list of column names, docs updated by @igorbenav in #32

Full Changelog: v0.3.1...v0.3.2

0.3.1

02 Nov 21:13
7c4e815

Choose a tag to compare

Summary

0.3.1

CRUDBase docs and type hints corrected (get and get_multi now return Row, not Model)

What's Changed

Full Changelog: v0.3.0...v0.3.1

0.3.0

02 Nov 21:05
10d1e07

Choose a tag to compare

Summary

Now it's possible to select only a few attributes in a query.

For the get and get_multi methods we have the option to define a schema_to_select attribute, which is what actually makes the queries more efficient. When you pass a pydantic schema in schema_to_select to the get or get_multi methods, only the attributes in the schema will be selected.

from app.schemas.user import UserRead
# Here it's selecting all of the user's data
crud_user.get(db=db, username="myusername")

# Now it's only selecting the data that is in UserRead. 
# Since that's my response_model, it's all I need
crud_user.get(db=db, username="myusername", schema_to_select=UserRead)

Warning
What's retrieved from the get is no longer an ORM model, it's a sqlalchemy.engine.row.Row, so update your code accordingly

What's Changed

Full Changelog: v0.2.1...v0.3.0

0.2.1

28 Oct 21:38
9387ecb

Choose a tag to compare

Summary

  • functions defining fastapi creation moved from main to src/app/core/setup.py, main now imports and creates only
  • python-decouple replaced with starlette.config
  • docs updated

What's Changed

Full Changelog: v0.2.0...v0.2.1

0.2.0

28 Oct 07:26
4674656

Choose a tag to compare

Summary

ENVIRONMENT variable in .env added for security.
It can be one of local, staging and production, defaults to local, and changes the behavior of api docs endpoints:

  • local: /docs, /redoc and /openapi.json available
  • staging: /docs, /redoc and /openapi.json available for superusers
  • production: /docs, /redoc and /openapi.json not available

Some other changes:

  • bigger threadpool by default
  • easier option to change the number of tokens
  • Packages updated

What's Changed

New Contributors

Full Changelog: v0.1.0...v0.2.0

0.1.0

25 Oct 21:09
2e374f7

Choose a tag to compare

Initial release