aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation/resources/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-25 18:48:07 -0500
committerFrederick Muriuki Muriithi2024-09-25 18:48:33 -0500
commit1968503b6b01e8612d1d2aaedd7c1d80092ba2de (patch)
tree3a549e0c46e3f221420ac3aca9fcba7e5ea4c47a /gn_auth/auth/authorisation/resources/views.py
parenta3f0e670635ad4319e241ada50587af75a0a2901 (diff)
downloadgn-auth-1968503b6b01e8612d1d2aaedd7c1d80092ba2de.tar.gz
Implement genotype resource creation via API with resource data
Create the resource, assign the resource-owner role and link the resource's data in a single API call.
Diffstat (limited to 'gn_auth/auth/authorisation/resources/views.py')
-rw-r--r--gn_auth/auth/authorisation/resources/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py
index 3f972f6..31421f4 100644
--- a/gn_auth/auth/authorisation/resources/views.py
+++ b/gn_auth/auth/authorisation/resources/views.py
@@ -41,6 +41,7 @@ from gn_auth.auth.authentication.users import User, user_by_id, user_by_email
from .checks import authorised_for
from .inbredset.views import popbp
+from .genotypes.views import genobp
from .errors import MissingGroupError
from .groups.models import Group, user_group
from .models import (
@@ -52,6 +53,7 @@ from .models import (
resources = Blueprint("resources", __name__)
resources.register_blueprint(popbp, url_prefix="/")
+resources.register_blueprint(genobp, url_prefix="/")
@resources.route("/categories", methods=["GET"])
@require_oauth("profile group resource")