Skip to content

Add endpoint for retrieving "folder" media types.#16345

Merged
Zeegaan merged 2 commits intov14/devfrom
v14/feature/folder-media-types-endpoint
May 23, 2024
Merged

Add endpoint for retrieving "folder" media types.#16345
Zeegaan merged 2 commits intov14/devfrom
v14/feature/folder-media-types-endpoint

Conversation

@kjac
Copy link
Copy Markdown
Contributor

@kjac kjac commented May 22, 2024

Prerequisites

  • I have added steps to test this contribution in the description below

Description

This adds a new endpoint for retrieving the media types that are considered "folder" media types.

A "folder" media type has the following characteristics:

  1. It has no "umbracoFile" property.
  2. It has allowed child content types.

For backwards compatability however, the system "Folder" media type should always be considered a "folder" media type, no matter if it does match the characteristics above.

Testing this PR

Use Swagger to test the new endpoint:

  • In a default install, the endpoint should yield only the system "Folder" media type.
  • If you add more media types that match the above-mentioned characteristics, the endpoint should include these.
  • If you change the "Folder" media type so it does not match the expected characteristics, it should still be included in the endpoint output.

@Zeegaan
Copy link
Copy Markdown
Member

Zeegaan commented May 23, 2024

Looks good, tests good 🚀

@Zeegaan Zeegaan merged commit 2b79d24 into v14/dev May 23, 2024
@Zeegaan Zeegaan deleted the v14/feature/folder-media-types-endpoint branch May 23, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants