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

first commit on this branch #76

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

first commit on this branch #76

wants to merge 1 commit into from

Conversation

skholkhojaev
Copy link
Collaborator

This is just a Testing ground

Copy link

@dzehnder dzehnder left a comment

Choose a reason for hiding this comment

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

Please verify all api.yaml files and remove all not needed files

Choose a reason for hiding this comment

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

please add to gitignore

Choose a reason for hiding this comment

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

same here

"version": "1.0.0"
},
"paths": {
/pot-types {

Choose a reason for hiding this comment

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

missing quotation marks

@@ -0,0 +1,79 @@
{
"openapi": "3.0.0",

Choose a reason for hiding this comment

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

use latest version: 3.1.0

}
}
},
"/api/pot-types/{id}": {

Choose a reason for hiding this comment

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

missing id parameter definition:

Suggested change
"/api/pot-types/{id}": {
"/api/pot-types/{id}": {
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "ID of the pot type"
}
],

"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {

Choose a reason for hiding this comment

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

you could add a swagger script to run the API spec

Choose a reason for hiding this comment

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

can be added to .gitignore

Choose a reason for hiding this comment

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

move db scripts to appropriate folder

Choose a reason for hiding this comment

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

incomplete package.json

@@ -0,0 +1,13 @@
const validApiKey = "your_secret_api_key"; // Replace this with your actual API key

Choose a reason for hiding this comment

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

do not expose API keys in the code, they should be store in an environment variable

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