Skip to content

kurehajime/fumidai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fumidai

A stepping-stone server that provides APIs while hiding access tokens.

By accessing the API via fumidai, each server does not need to know the access token.

However, it is not recommended to expose this server to outside client.

sequenceDiagram
    participant App as ApplicationServer
    participant fumidai as fumidai
    participant Api as ApiServer
    App->>fumidai: HTTP request without an access token
    fumidai->>Api: HTTP request with an access token
    Api->>fumidai: Response
    fumidai->>App: Response
sequenceDiagram
    Alice->>+John: Hello John, how are you?
    Alice->>+John: John, can you hear me?
    John-->>-Alice: Hi Alice, I can hear you!
    John-->>-Alice: I feel great!


Usage

Option Description
-H Specifies request headers to be added. (can be used multiple times)
-X Specify the method: GET,POST,PUT,DELETE
-port listen port (default 8080)

Example

Open AI API Example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages