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: Include a Products entity with pictures for sampling anonymous endpoints and downloading #52

Closed
CesarD opened this issue Nov 29, 2023 · 2 comments · Fixed by #61
Assignees
Labels
enhancement New feature or request

Comments

@CesarD
Copy link
Collaborator

CesarD commented Nov 29, 2023

Detailed Description

Just as right now the Backend project offers a sample of a Companies CRUD, it would be interesting to include a sample of how files can be related to entities in order to provide a more concrete demonstration, as right now the --fileSupport switch doesn't offer any of this and only a separate domain entities with no relationship with anything.

Context

This should help to provide some better context and example of how files can be linked to entities and how Monaco envisions this to be implemented, serving -just like the Companies CRUD- as a reference for developing similar stuff.

Possible Implementation

Provide a Products CRUD that include at least a picture (or more) for a better practical demonstration on how to handle the files being related to other entities.
The Products GET endpoints can be set with Anonymous access as that could give place to a frontend displaying content for the public without having to go through authentication.

@CesarD CesarD added the enhancement New feature or request label Nov 29, 2023
@matthewtoghill
Copy link
Collaborator

Do you envisage this only implementing the GET endpoints and faking a result file stream so as to not need any real blob storage? Or it's possible some other way?

Perhaps also the wiki here should show a possible implementation of POST and DELETE image endpoints?

@CesarD
Copy link
Collaborator Author

CesarD commented Nov 30, 2023

You can run the Azure Storage Account emulator locally, so you don't really require an active Azure subscription and spend any money on an Azure Storage Account to run this locally 😉

There's a specific configuration to use for the local storage emulator: https://learn.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string#configure-a-connection-string-for-azurite

@CesarD CesarD self-assigned this Dec 3, 2023
CesarD added a commit that referenced this issue Dec 18, 2023
CesarD added a commit that referenced this issue Dec 23, 2023
…ndpoints and downloading (#61)

## Description
Include a Product entity with pictures for sampling anonymous endpoints
and upload/download of files.

## Related Issue
Closes #52 

## How Has This Been Tested?
Template flag `--filesSupport` has been changed by
`--excludeFilesSupport`, which will default to true and will include the
implementation of the Products and Files by default and allows the user
to opt-out.
All the files and code related to Products and Files should be excluded
when passing the `--excludeFilesSupport` flag during the creation of a
new solution.

## Screenshots (if appropriate):

## Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [X] My code follows the code style of this project.
- [X] My change requires a change to the documentation.
- [x] I have updated the documentation accordingly.
- [X] I have read the **CONTRIBUTING** document.
- [X] I have added tests to cover my changes.
- [X] All new and existing tests passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants