Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backend API] Implement endpoint for new resource details #308 #332

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

o-ii
Copy link
Contributor

@o-ii o-ii commented Oct 5, 2024

Issue

#308

[Backend API] Implement endpoint for new resource details

Changes

  • Repository
  • Service
  • Endpoint
  • Test (작성중)

Azure

Storage account 생성

az storage account create -n {{Storage account}} -g {{Resource group}} -l koreacentral --subscription ossca

appsettings.Development.json 설정

  "Azure": {
    "OpenAI": {
      "Instances": [
        {
          "Endpoint": "https://{{location}}.api.cognitive.microsoft.com/",
          "ApiKey": "{{api-key}}",
          "DeploymentNames": [
            "deployment-name-1",
            "deployment-name-2"
          ]
        }
      ]
    },
    "KeyVault": {
      "VaultUri": "https://{{key-vault-name}}.vault.azure.net/",
      "SecretNames": {
        "OpenAI": "azure-openai-instances",
        "Storage": "storage-connection-string"
      }
    }
  }
}
  • {{location}} & {{api-key}} Azure Home > Azure AI services > Endpoints (Click here to view endpoints) > Show Keys

  • {{key-vault-name}} Azure Home > Key vaults > Vault URI

  • storage-connection-string Azure Home > Key vaults > Objects > Secrets > Generate (Create a secret)

    Name: storage-connection-string
    Secret value: Storage account > Security + networking > Access keys > Connection string

Screenshots

Screenshot 2024-10-05 at 5 30 25 PM

Swagger UI (https://localhost:7001/swagger/index.html)

Screenshot 2024-10-05 at 5 32 56 PM

Azure Home > Storage account > Storage browser > Tables > events

References

infra/aspire.bicep Outdated Show resolved Hide resolved
src/AzureOpenAIProxy.ApiApp/Program.cs Outdated Show resolved Hide resolved
src/AzureOpenAIProxy.ApiApp/appsettings.json Outdated Show resolved Hide resolved
Copy link
Contributor

@justinyoo justinyoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋습니다. 이제 테스트를 채워주세요!

@o-ii o-ii marked this pull request as ready for review October 12, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Backend API] Implement endpoint for new resource details
2 participants