* First stab at a massive remake of file system based endpoints * Do not prefix system paths with directory separator char * Ensure correct and consistent response types * Fix partial view snippets endpoints * Clean up IO (path) operations * Update OpenAPI JSON to match new endpoints * Return 201 when renaming file system resources * Add "IsFolder" to file system item endpoints * Replace "parentPath" with a "parent" object for file system creation endpoints * Update OpenAPI JSON * Rewrite snippets * Regenerate OpenAPI JSON after forward merge * Remove stylesheet overview endpoint * Regenerate OpenAPI JSON after forward merge * add server-file-system module to importmap * Expose generated resource identifier in 201 responses --------- Co-authored-by: Mads Rasmussen <madsr@hey.com>
24 lines
513 B
C#
24 lines
513 B
C#
namespace Umbraco.Cms.Core.Snippets;
|
|
|
|
/// <summary>
|
|
/// A lightweight representation of a partial view snippet (i.e. without content).
|
|
/// </summary>
|
|
public class PartialViewSnippetSlim
|
|
{
|
|
public PartialViewSnippetSlim(string id, string name)
|
|
{
|
|
Id = id;
|
|
Name = name;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the ID of the snippet.
|
|
/// </summary>
|
|
public string Id { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the name of the snippet.
|
|
/// </summary>
|
|
public string Name { get; }
|
|
}
|