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

[Feature] Add endpoint for getting data about a given document #75

Closed
kevinanielsen opened this issue Dec 27, 2023 · 0 comments · Fixed by #81
Closed

[Feature] Add endpoint for getting data about a given document #75

kevinanielsen opened this issue Dec 27, 2023 · 0 comments · Fixed by #81
Labels
api Improvements or additions to the api enhancement New feature or request go Language: Go good first issue Good for newcomers

Comments

@kevinanielsen
Copy link
Owner

Is your feature request related to a problem? Please describe.

N/A

Describe the solution you'd like

Add an endpoint for getting more information about an document based on the filename /api/cdn/doc/:filename
This data needs to contain width, height, file size (in bytes), filename, download-url, and more relevant information.

A 200 response could look like this:

{
  "filename": "string",
  "download_url": "string",
  "file_size": "int",
}

Describe alternatives you've considered

N/A

Additional context

N/A

@kevinanielsen kevinanielsen added enhancement New feature or request good first issue Good for newcomers api Improvements or additions to the api go Language: Go labels Dec 27, 2023
kevinanielsen pushed a commit that referenced this issue Jan 2, 2024
* First pass at #75

* doc: add openapi spec for doc metadata endpoint

* test: add tests for HandleDocMetadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Improvements or additions to the api enhancement New feature or request go Language: Go good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant