Skip to content

Conversation

@miniBill
Copy link
Collaborator

@miniBill miniBill commented Oct 2, 2025

Is... this all? I think I must be missing something. Probably needs to support multiple?

@github-actions
Copy link

github-actions bot commented Oct 2, 2025

@github-actions
Copy link

github-actions bot commented Oct 8, 2025

@github-actions
Copy link

@github-actions
Copy link

diff --ignore-all-space --minimal --new-file --recursive main/cli/generated/CookieAuth/Api.elm branch/cli/generated/CookieAuth/Api.elm
0a1,61
> module CookieAuth.Api exposing (users, usersTask)
> 
> {-|
> 
> 
> ## Operations
> 
> @docs users, usersTask
> 
> -}
> 
> import Dict
> import Http
> import Json.Decode
> import OpenApi.Common
> import Task
> import Url.Builder
> 
> 
> {-| Returns a list of users.
> -}
> users :
>     { authorization : { cookie_monster : String }
>     , toMsg : Result (OpenApi.Common.Error e String) String -> msg
>     }
>     -> Cmd msg
> users config =
>     Http.request
>         { url = Url.Builder.absolute [ "users" ] []
>         , method = "GET"
>         , headers =
>             [ Http.header
>                 "Cookie"
>                 ("COOKIE-MONSTER!=" ++ config.authorization.cookie_monster)
>             ]
>         , expect =
>             OpenApi.Common.expectStringCustom (Dict.fromList []) config.toMsg
>         , body = Http.emptyBody
>         , timeout = Nothing
>         , tracker = Nothing
>         }
> 
> 
> {-| Returns a list of users.
> -}
> usersTask :
>     { authorization : { cookie_monster : String } }
>     -> Task.Task (OpenApi.Common.Error e String) String
> usersTask config =
>     Http.task
>         { url = Url.Builder.absolute [ "users" ] []
>         , method = "GET"
>         , headers =
>             [ Http.header
>                 "Cookie"
>                 ("COOKIE-MONSTER!=" ++ config.authorization.cookie_monster)
>             ]
>         , resolver = OpenApi.Common.stringResolverCustom (Dict.fromList [])
>         , body = Http.emptyBody
>         , timeout = Nothing
>         }

@wolfadex wolfadex merged commit fa1abae into main Nov 17, 2025
2 checks passed
@wolfadex wolfadex deleted the cookie-monster branch November 17, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants