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 image #73

Closed
kevinanielsen opened this issue Dec 27, 2023 · 2 comments
Closed

[Feature] Add endpoint for getting data about a given image #73

kevinanielsen opened this issue Dec 27, 2023 · 2 comments
Assignees
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 image based on the filename /api/cdn/image/: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",
  "width": "int",
  "height": "int"
}

Describe alternatives you've considered

N/A

Additional context

N/A

@kevinanielsen kevinanielsen added enhancement New feature or request api Improvements or additions to the api go Language: Go good first issue Good for newcomers labels Dec 27, 2023
@raj3k
Copy link
Collaborator

raj3k commented Dec 29, 2023

Hello, I will take a shot on that one

@kevinanielsen
Copy link
Owner Author

Sounds great - Assigning you now!

raj3k added a commit to raj3k/go-fast-cdn that referenced this issue Jan 5, 2024
[Doc]: add openapi spec for image metadata endpoint

[Test]: add tests for HandleImageMetadata
kevinanielsen added a commit that referenced this issue Jan 5, 2024
* [Feat]: add endpoint for getting image metadata (#73)

[Doc]: add openapi spec for image metadata endpoint

[Test]: add tests for HandleImageMetadata

---------

Co-authored-by: Kevin Nielsen <kevinanielsen@outlook.com>
raj3k added a commit to raj3k/go-fast-cdn that referenced this issue Jan 6, 2024
[Doc]: add openapi spec for image metadata endpoint

[Test]: add tests for HandleImageMetadata
raj3k added a commit to raj3k/go-fast-cdn that referenced this issue Jan 6, 2024
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

No branches or pull requests

2 participants