0

for example, spring boot has annotations for certain methods (post, get, request body, etc..)

What attributes should be supplied for the arguments in the method, for example:

    [HttpPost]
  public async Task<List<ShowModelAttributes>> showModels(#here string str, #and here 
                                             string token)
    {
         return await serviceFromGetStatus.sendRestArrayOrderId(str, token);
    }

that is, when there is more than one argument.

also please, is there any detailed documentation on these attributes

Daniel Vai
  • 71
  • 8
  • 1
    https://stackoverflow.com/a/4015346/14722448 This is a pretty in depth guide I'd defiantly check it out – Skyhighjinks Jul 27 '21 at 18:28
  • @Skyhighjinks I have the logic in the service. I need to register attributes in the controller, but I don't know which ones to use – Daniel Vai Jul 27 '21 at 18:35
  • @IanKemp No. I need information about [HttpPost], HttpGet], [PostBody] and etc.. – Daniel Vai Jul 27 '21 at 20:20
  • You don't need arguments... just bind the model: https://learn.microsoft.com/en-us/aspnet/core/mvc/models/model-binding?view=aspnetcore-5.0 – pcalkins Jul 27 '21 at 20:36
  • @pcalkins Yes,still would have shown what to put on my example for arguments, there would be no price. Thank you! ) – Daniel Vai Jul 27 '21 at 21:01

0 Answers0