Repository navigation
I don't understand why Bruno doesn't pass a JSON body to a request #7160
Replies: 1 comment
|
I discovered what was wrong. It is related to my PC and network connectivity. This morning when I came in my workstation didn't have any network connection. I rebooted. After that the API was able to receive the JSON object passed to it from the Minimal API when I tested it with Bruno. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've been using Bruno only a couple of months, so likely my problem is due to lack of experience. I've written a Minimal API in .NET 9. There's a problem where modification to some data on a web page is not going back to the database. I have started looking at the Minimal API endpoint to see if that is the problem. I have to pass in a complex object into the endpoint, but since this is a Minimal API it is my understanding that I can pass that in via the body. And I've done so with other endpoints in the same Minimal API. (Note: I have posted a question on this earlier on Stack Overflow, but then I thought I could come to GitHub and give more details.)
Here's a little more of the endpoint:
Note that the problem is with the PhdUserDTO. When I set a breakpoint on the assignment to ctx, then look at the elements in userDto, I found that all the fields, with the exception of PositionNumber, are null. And if you look at the post I did on SO, you'll see that I populated 5 fields, so I don't understand why in the UserMaintenance endpoint, they're almost all null.
Here is the PhdUserDTO class definition:
All reactions