Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LondonAppDeveloper/c2-recipe-app-api-2
/ functions
Functions
111 in github.com/LondonAppDeveloper/c2-recipe-app-api-2
⨍
Functions
111
◇
Types & classes
49
↳
Endpoints
2
↓ 39 callers
Method
create
Create a recipe.
app/recipe/serializers.py:64
↓ 23 callers
Function
create_recipe
Create and return a sample recipe.
app/recipe/tests/test_recipe_api.py:42
↓ 13 callers
Method
create_user
Create, save and return a new user.
app/core/models.py:27
↓ 12 callers
Function
detail_url
Create and return a recipe detail URL.
app/recipe/tests/test_recipe_api.py:32
↓ 4 callers
Function
create_user
Create and return a new user.
app/user/tests/test_user_api.py:17
↓ 4 callers
Function
create_user
Create and return a new user.
app/recipe/tests/test_recipe_api.py:57
↓ 3 callers
Method
create
Create and return a user with encrypted password.
app/user/serializers.py:21
↓ 2 callers
Method
_get_or_create_ingredients
Handle getting or creating ingredients as needed.
app/recipe/serializers.py:54
↓ 2 callers
Method
_get_or_create_tags
Handle getting or creating tags as needed.
app/recipe/serializers.py:44
↓ 2 callers
Method
_params_to_ints
Convert a list of strings to integers.
app/recipe/views.py:52
↓ 2 callers
Method
create_superuser
Create and return a new superuser.
app/core/models.py:37
↓ 2 callers
Function
create_user
Create a return a new user.
app/core/tests/test_models.py:13
↓ 2 callers
Function
create_user
Create and return user.
app/recipe/tests/test_ingredients_api.py:29
↓ 2 callers
Function
create_user
Create and return a user.
app/recipe/tests/test_tags_api.py:29
↓ 2 callers
Function
detail_url
Create and return an ingredient detail URL.
app/recipe/tests/test_ingredients_api.py:24
↓ 2 callers
Function
detail_url
Create and return a tag detail url.
app/recipe/tests/test_tags_api.py:24
↓ 2 callers
Function
image_upload_url
Create and return an image upload URL.
app/recipe/tests/test_recipe_api.py:37
↓ 1 callers
Method
get_object
Retrieve and return the authenticated user.
app/user/views.py:31
↓ 1 callers
Function
main
Run administrative tasks.
app/manage.py:7
↓ 1 callers
Method
update
Update recipe.
app/recipe/serializers.py:74
Method
__str__
(self)
app/core/models.py:74
Method
__str__
(self)
app/core/models.py:86
Method
__str__
(self)
app/core/models.py:98
Function
add
Add x and y and return result.
app/app/calc.py:6
Method
get_queryset
Retrieve recipes for authenticated user.
app/recipe/views.py:56
Method
get_queryset
Filter queryset to authenticated user.
app/recipe/views.py:117
Method
get_serializer_class
Return the serializer class for request.
app/recipe/views.py:72
Method
handle
Entrypoint for command.
app/core/management/commands/wait_for_db.py:15
Function
health_check
Returns successful response.
app/core/views.py:9
Method
perform_create
Create a new recipe.
app/recipe/views.py:81
Function
recipe_image_file_path
Generate file path for new recipe image.
app/core/models.py:16
Method
setUp
(self)
app/user/tests/test_user_api.py:25
Method
setUp
(self)
app/user/tests/test_user_api.py:123
Method
setUp
Create user and client.
app/core/tests/test_admin.py:13
Method
setUp
(self)
app/recipe/tests/test_recipe_api.py:65
Method
setUp
(self)
app/recipe/tests/test_recipe_api.py:78
Method
setUp
(self)
app/recipe/tests/test_recipe_api.py:426
Method
setUp
(self)
app/recipe/tests/test_ingredients_api.py:37
Method
setUp
(self)
app/recipe/tests/test_ingredients_api.py:50
Method
setUp
(self)
app/recipe/tests/test_tags_api.py:37
Method
setUp
(self)
app/recipe/tests/test_tags_api.py:50
Function
subtract
Subtract x from y and return result.
app/app/calc.py:11
Method
tearDown
(self)
app/recipe/tests/test_recipe_api.py:435
Method
test_add_numbers
Test adding numbers together.
app/app/tests.py:12
Method
test_auth_required
Test auth is required to call API.
app/recipe/tests/test_recipe_api.py:68
Method
test_auth_required
Test auth is required for retrieving ingredients.
app/recipe/tests/test_ingredients_api.py:40
Method
test_auth_required
Test auth is required for retrieving tags.
app/recipe/tests/test_tags_api.py:40
Method
test_clear_recipe_ingredients
Test clearing a recipes ingredients.
app/recipe/tests/test_recipe_api.py:369
Method
test_clear_recipe_tags
Test clearing a recipes tags.
app/recipe/tests/test_recipe_api.py:283
Method
test_create_ingredient
Test creating an ingredient is successful.
app/core/tests/test_models.py:83
Method
test_create_ingredient_on_update
Test creating an ingredient when updating a recipe.
app/recipe/tests/test_recipe_api.py:342
Method
test_create_recipe
Test creating a recipe is successful.
app/core/tests/test_models.py:60
Method
test_create_recipe
Test creating a recipe.
app/recipe/tests/test_recipe_api.py:118
Method
test_create_recipe_with_existing_ingredient
Test creating a new recipe with existing ingredient.
app/recipe/tests/test_recipe_api.py:318
Method
test_create_recipe_with_existing_tags
Test creating a recipe with existing tag.
app/recipe/tests/test_recipe_api.py:232
Method
test_create_recipe_with_new_ingredients
Test creating a recipe with new ingredients.
app/recipe/tests/test_recipe_api.py:296
Method
test_create_recipe_with_new_tags
Test creating a recipe with new tags.
app/recipe/tests/test_recipe_api.py:210
Method
test_create_superuser
Test creating a superuser.
app/core/tests/test_models.py:50
Method
test_create_tag
Test creating a tag is successful.
app/core/tests/test_models.py:76
Method
test_create_tag_on_update
Test create tag when updating a recipe.
app/recipe/tests/test_recipe_api.py:256
Method
test_create_token_bad_credentials
Test returns error if credentials invalid.
app/user/tests/test_user_api.py:87
Method
test_create_token_blank_password
Test posting a blank password returns an error.
app/user/tests/test_user_api.py:105
Method
test_create_token_email_not_found
Test error returned if user not found for given email.
app/user/tests/test_user_api.py:97
Method
test_create_token_for_user
Test generates token for valid credentials.
app/user/tests/test_user_api.py:69
Method
test_create_user_page
Test the create user page works.
app/core/tests/test_admin.py:42
Method
test_create_user_success
Test creating a user is successful.
app/user/tests/test_user_api.py:28
Method
test_create_user_with_email_successful
Test creating a user with an email is successful.
app/core/tests/test_models.py:21
Method
test_delete_ingredient
Test deleting an ingredient.
app/recipe/tests/test_ingredients_api.py:92
Method
test_delete_recipe
Test deleting a recipe successful.
app/recipe/tests/test_recipe_api.py:189
Method
test_delete_tag
Test deleting a tag.
app/recipe/tests/test_tags_api.py:92
Method
test_edit_user_page
Test the edit user page works.
app/core/tests/test_admin.py:35
Method
test_filter_by_ingredients
Test filtering recipes by ingredients.
app/recipe/tests/test_recipe_api.py:402
Method
test_filter_by_tags
Test filtering recipes by tags.
app/recipe/tests/test_recipe_api.py:382
Method
test_filter_ingredients_assigned_to_recipes
Test listing ingedients to those assigned to recipes.
app/recipe/tests/test_ingredients_api.py:103
Method
test_filter_tags_assigned_to_recipes
Test listing tags to those assigned to recipes.
app/recipe/tests/test_tags_api.py:103
Method
test_filtered_ingredients_unique
Test filtered ingredients returns a unique list.
app/recipe/tests/test_ingredients_api.py:122
Method
test_filtered_tags_unique
Test filtered tags returns a unique list.
app/recipe/tests/test_tags_api.py:122
Method
test_full_update
Test full update of recipe.
app/recipe/tests/test_recipe_api.py:152
Method
test_get_recipe_detail
Test get recipe detail.
app/recipe/tests/test_recipe_api.py:108
Method
test_health_check
Test health check API.
app/core/tests/test_health_check.py:14
Method
test_ingredients_limited_to_user
Test list of ingredients is limited to authenticated user.
app/recipe/tests/test_ingredients_api.py:67
Method
test_new_user_email_normalized
Test email is normalized for new users.
app/core/tests/test_models.py:33
Method
test_new_user_without_email_raises_error
Test that creating a user without an email raises a ValueError.
app/core/tests/test_models.py:45
Method
test_partial_update
Test partial update of a recipe.
app/recipe/tests/test_recipe_api.py:133
Method
test_password_too_short_error
Test an error is returned if password less than 5 chars.
app/user/tests/test_user_api.py:54
Method
test_post_me_not_allowed
Test POST is not allowed for the me endpoint.
app/user/tests/test_user_api.py:142
Method
test_recipe_file_name_uuid
Test generating image path.
app/core/tests/test_models.py:94
Method
test_recipe_list_limited_to_user
Test list of recipes is limited to authenticated user.
app/recipe/tests/test_recipe_api.py:95
Method
test_recipe_other_users_recipe_error
Test trying to delete another users recipe gives error.
app/recipe/tests/test_recipe_api.py:199
Method
test_retrieve_ingredients
Test retrieving a list of ingredients.
app/recipe/tests/test_ingredients_api.py:55
Method
test_retrieve_profile_success
Test retrieving profile for logged in user.
app/user/tests/test_user_api.py:132
Method
test_retrieve_recipes
Test retrieving a list of recipes.
app/recipe/tests/test_recipe_api.py:83
Method
test_retrieve_tags
Test retrieving a list of tags.
app/recipe/tests/test_tags_api.py:55
Method
test_retrieve_user_unauthorized
Test authentication is required for users.
app/user/tests/test_user_api.py:113
Method
test_subtract_numbers
Test subtracting numbers.
app/app/tests.py:18
Method
test_tags_limited_to_user
Test list of tags is limited to authenticated user.
app/recipe/tests/test_tags_api.py:67
Method
test_update_ingredient
Test updating an ingredient.
app/recipe/tests/test_ingredients_api.py:80
Method
test_update_recipe_assign_ingredient
Test assigning an existing ingredient when updating a recipe.
app/recipe/tests/test_recipe_api.py:354
Method
test_update_recipe_assign_tag
Test assigning an existing tag when updating a recipe.
app/recipe/tests/test_recipe_api.py:268
Method
test_update_tag
Test updating a tag.
app/recipe/tests/test_tags_api.py:80
next →
1–100 of 111, ranked by callers