SwaggerLife
Dublicate Properties in Tables?
I have a table named
Users
and one named Organizations
. The relation between them is many to many. The joining table is called OrganizationMember
. I'm wondering whether it would be a good idea, to store certain properties from the User
table inside the OrganizationMember
. Such as Email
, & Full Name
and AvatarUrl
. The reason being is that OrganizationMember
will be used very much. I don't want to modify my queries to include the User
every time. Any suggestions would be appreciated.6 replies
✅ Suggestion on file upload?
When uploading file to azure storage. Should I upload the files through the server (api)? or is there another way. The thing that scares me is that if multiple people upload at the same time than we will have a memory issue. The clients in this case are mobile apps? Any insights would be appreciated.
45 replies
Verify Google Id Token: FormatException
I'm using google sign in on my client. Before authenticating the user I want to Verify the ID Token which I get from the client. On the server side. I'm trying to validate the ID Token (jwt) by using
Google.Apis.Auth
nuget package. But I'm getting a format exception. Here is the code:
2 replies
How to tell SwaggerUI to display `Enum` by the name and not integer value?
I want SwaggerUI to display
Enum
by the name and not integer value. The only problem is that when triggering an action it's sending the name to the pipline.
Is there a way I can tell swagger to only display the enums as their string name? But it should still handle everything by their integer values?1 replies
Tips on choosing the right database
I'm currently working on a social media project that involves features like comments, replies, following, followers, and posts. I'm in the process of choosing the right database for the project and wanted to reach out to seek valuable insights.
Considering the dynamic nature of social media interactions and the need for efficient data retrieval, I'm a bit torn between different database options. Do you guys have any recommendations or insights on which database might be a good fit for managing the complexities of user interactions?
I don't have that much experience in other databases. I'm only familiar with SQL.
10 replies
❔ Linq Query HELP
I have this entity. During deletion, I would like to load all related entities, so that I can delete them also. Here is the entity
I have come this far
I would like to load the Replies, and there likes, dislikes, suspensions. I also need to load the replies of replies and there likes, dislikes, suspensions etc. Any help would be appreciated. I don't think this query will do the job.
5 replies
❔ RequestSizeLimit on Actions not Working!
I have an action that is uploading a large file. The file size is 189mb. For some reason I'm getting this error 413 Error: Request Entity Too Large.
I even tried adding the RequestSizeLimit attribute on top of the action but it still has no effect. Here is the action
5 replies
❔ How do I prevent access to a web server (web api application) from certain clients?
I have a web api running on azure. I also have 2 clients, 1 android app and 1 ios app. The client uses json web tokens to communicate with the server. This is how the authorization is done. In theory the json web tokens are acting like api keys to retrieve and mutate data. But if the user get's their hand on the token, they can make requests to the server from other application/services. Example: they could have their own website that is making calls to the web server with the jwt. Is there a way, I can only allow incoming requests from a certain specific client? In this case our (mobil apps).
14 replies