Skip to content

Commit

Permalink
Merge pull request #121 from GatoGraphQL/SetTags/Cats---get-the-taxon…
Browse files Browse the repository at this point in the history
…omies-from-the-actual-IDs

Support additional taxonomies for mutations on post tags/categories (not only `post_tag` and `category`)
  • Loading branch information
leoloso committed Sep 2, 2024
2 parents bb15ef2 + da8d8f6 commit 856e08d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion submodules/GatoGraphQL
Submodule GatoGraphQL updated 135 files
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ curl -i --insecure \
--user "admin:$(echo $ADMIN_USER_APP_PASSWORD)" \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonEncodedOptionValues": "{\"tag-taxonomies\":[\"dummy-tag\",\"dummy-tag-two\",\"post_tag\"]}"}' \
-d '{"jsonEncodedOptionValues": "{\"tag-taxonomies\":[\"additional-post-tag\",\"dummy-tag\",\"dummy-tag-two\",\"post_tag\"]}"}' \
$(echo $SITE_DOMAIN)/wp-json/gatographql/v1/admin/module-settings/gatographql_gatographql_schema-tags

curl -i --insecure \
--user "admin:$(echo $ADMIN_USER_APP_PASSWORD)" \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonEncodedOptionValues": "{\"category-taxonomies\":[\"category\",\"dummy-category\",\"dummy-category-two\"]}"}' \
-d '{"jsonEncodedOptionValues": "{\"category-taxonomies\":[\"additional-post-category\",\"category\",\"dummy-category\",\"dummy-category-two\"]}"}' \
$(echo $SITE_DOMAIN)/wp-json/gatographql/v1/admin/module-settings/gatographql_gatographql_schema-categories

Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ curl -i --insecure \
--user "admin:$(echo $ADMIN_USER_APP_PASSWORD)" \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonEncodedOptionValues": "{\"tag-taxonomies\":[\"dummy-tag\",\"dummy-tag-two\",\"post_tag\"]}"}' \
-d '{"jsonEncodedOptionValues": "{\"tag-taxonomies\":[\"additional-post-tag\",\"dummy-tag\",\"dummy-tag-two\",\"post_tag\"]}"}' \
$(echo $SITE_DOMAIN)/wp-json/gatographql/v1/admin/module-settings/gatographql_gatographql_schema-tags

curl -i --insecure \
--user "admin:$(echo $ADMIN_USER_APP_PASSWORD)" \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonEncodedOptionValues": "{\"category-taxonomies\":[\"category\",\"dummy-category\",\"dummy-category-two\"]}"}' \
-d '{"jsonEncodedOptionValues": "{\"category-taxonomies\":[\"additional-post-category\",\"category\",\"dummy-category\",\"dummy-category-two\"]}"}' \
$(echo $SITE_DOMAIN)/wp-json/gatographql/v1/admin/module-settings/gatographql_gatographql_schema-categories

0 comments on commit 856e08d

Please sign in to comment.