Skip to content

Latest commit

 

History

History
81 lines (49 loc) · 2.61 KB

SessionServiceApi.md

File metadata and controls

81 lines (49 loc) · 2.61 KB

\SessionServiceApi

All URIs are relative to https://localhost

Method HTTP request Description
SessionServiceCreate Post /api/v1/session Create a new JWT for authentication and set a cookie if using HTTP
SessionServiceDelete Delete /api/v1/session Delete an existing JWT cookie if using HTTP
SessionServiceGetUserInfo Get /api/v1/session/userinfo Get the current user's info

SessionServiceCreate

SessionSessionResponse SessionServiceCreate(ctx, body) Create a new JWT for authentication and set a cookie if using HTTP

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body SessionSessionCreateRequest

Return type

SessionSessionResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SessionServiceDelete

SessionSessionResponse SessionServiceDelete(ctx, ) Delete an existing JWT cookie if using HTTP

Required Parameters

This endpoint does not need any parameter.

Return type

SessionSessionResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SessionServiceGetUserInfo

SessionGetUserInfoResponse SessionServiceGetUserInfo(ctx, ) Get the current user's info

Required Parameters

This endpoint does not need any parameter.

Return type

SessionGetUserInfoResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]