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

feat: implement GET /documents (closes #18) #24

Merged
merged 12 commits into from
Apr 2, 2024
Merged

feat: implement GET /documents (closes #18) #24

merged 12 commits into from
Apr 2, 2024

Conversation

sinedied
Copy link
Contributor

Purpose

  • Added GET /documents API
  • Added blob upload to /upload API
  • Renamed /upload to POST /documents

@glaucia86 I extracted the api declaration from packages/api/src/index.ts to keep everything in the function to keep the code simpler as we discussed (chat can be done later).
Just to reiterate: what you did initially is the best practice that should be used for larger projects, this is only done to keep the projet simpler 🙂 .

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

@@ -4,7 +4,7 @@
"azureFunctions.projectLanguage": "TypeScript",
"azureFunctions.projectRuntime": "~4",
"debug.internalConsoleOptions": "neverOpen",
"azureFunctions.projectLanguageModel": 4,
"azureFunctions.projectLanguageModel": 3,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we really going to change it to 3? Because I remember we used to change versions for debugging purposes, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, until the issue with the extension is fixed it's best to use the working version

return Buffer.concat(chunks);
}

app.get('documents', {
Copy link
Contributor

Choose a reason for hiding this comment

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

if you wish, here I can separate and place this route in the index.ts in the root of the api folder when I do the Protocol PR

Copy link
Contributor

@glaucia86 glaucia86 Mar 29, 2024

Choose a reason for hiding this comment

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

I just readed the comment above now. Ok. Let's keep it this way. In the next PR for Protocol I will change the chat api and then the .md files in the tutorial

Copy link
Contributor

@glaucia86 glaucia86 left a comment

Choose a reason for hiding this comment

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

LGTM

@sinedied sinedied merged commit 5fd1466 into main Apr 2, 2024
6 checks passed
@sinedied sinedied deleted the documents branch April 2, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants