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

adding additional endpoint to get the latest 10 timestamps #2076

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

Conversation

amha-mersha
Copy link

Checklist

  • I have followed (at least) the PR section of the contributing guide.
  • I fixed all necessary PR warnings
  • The commit history is clean
  • The E2E tests are passing
  • If possible, the issue has been divided into more subtasks
  • I did a self review before requesting a review from another team member

Description

How to test

  1. <E.g. login as user XYZ>
  2. <E.g. try to create new subproject>
  3. <E.g. You should not see error in console>
  4. ...

I tried to add the enpoint for the issue number #1965

@galethil galethil self-requested a review November 18, 2024 08:32
@@ -280,6 +281,21 @@ export const registerRoutes = (
},
);

server.get(
`${urlPrefix}/timestaps`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@amha-mersha there is a typo in the endpoint name

@@ -280,6 +281,21 @@ export const registerRoutes = (
},
);

server.get(
`${urlPrefix}/timestaps`,
silentRouteSettings(getSchema(server, "version")),
Copy link
Collaborator

Choose a reason for hiding this comment

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

@amha-mersha you have not defined the schema. You have to use correct name the schema of endpoint and also create it in api/src/httpd/schema.ts file and describe request and response schema there.

Suggested change
silentRouteSettings(getSchema(server, "version")),
silentRouteSettings(getSchema(server, "timestamps")),

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.

2 participants