diff --git a/stash_tagger.md b/stash_tagger.md index dadbc5a..2e8c29d 100644 --- a/stash_tagger.md +++ b/stash_tagger.md @@ -1,3 +1,8 @@ + + +Get the list of the performers + +``` query { findPerformers { performers { @@ -7,7 +12,10 @@ query { } } } +``` +Get the list of the performers , count them and don't add their alias +``` query { findPerformers { count @@ -17,7 +25,11 @@ query { } } } +``` +Find all the images split by 20 images + +``` query FindImages { findImages( image_filter: {} @@ -37,7 +49,9 @@ query FindImages { } } } +``` +``` query GetImageFiles { findImages(filter: { per_page: 20 }) { images { @@ -53,7 +67,10 @@ query GetImageFiles { } } } +``` +Get specific image ID by filename +``` query FindImageByPath { findImages( image_filter: { path: { value: "/data/1563-01.jpg", modifier: EQUALS } } @@ -63,9 +80,11 @@ query FindImageByPath { } } } - +``` amateur-have-be-our-favourite-position-fm-MsM3gC.jpg +update specific image with specified tags +``` mutation UpdateImageTags($imageId: ID!, $newTagIds: [ID!]) { imageUpdate(input: { id: "58", @@ -77,8 +96,11 @@ mutation UpdateImageTags($imageId: ID!, $newTagIds: [ID!]) { } } } +``` - - +examples of query +``` curl -X POST -H "ApiKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJwaS11eC1jZSIsInN1YiI6IkFQSUtleSIsImlhdCI6MTc2OTI3MDg0NX0._E6j5vMFV087KrNSjAmF3tVun39-ZXEpTIva9cLRR4Y" -H "Content-Type: application/json" --data '{ "query": "query {findPerformers {performers{id name}}}"}' https://stash.tryton.geeraert.eu/graphql +curl -X POST -H "ApiKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJwaS11eC1jZSIsInN1YiI6IkFQSUtleSIsImlhdCI6MTc2OTI3MDg0NX0._E6j5vMFV087KrNSjAmF3tVun39-ZXEpTIva9cLRR4Y" -H "Content-Type: application/json" --data '{ "query": "query {findPerformers {performers{id name}}}"}' https://stash.tryton.geeraert.eu/graphql |jq +``` \ No newline at end of file