Skip to content

Conversation

JoaoMartins-callmeJohn
Copy link
Member

Make folderId optional

Make folderId optional

[HttpGet("{hub}/projects/{project}/contents")]
public async Task<ActionResult> ListItems(string hub, string project, [FromQuery] string folder_id)
public async Task<ActionResult> ListItems(string hub, string project, [FromQuery]? string folder_id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the '?' be after the type, not the attribute? Like this:

[FromQuery] string? folder_id

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY, absolutelly :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants