added API Management for managing site level entity permissions
This commit is contained in:
31
Oqtane.Client/Services/Interfaces/IApiService.cs
Normal file
31
Oqtane.Client/Services/Interfaces/IApiService.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Service to retrieve and update API information.
|
||||
/// </summary>
|
||||
public interface IApiService
|
||||
{
|
||||
/// <summary>
|
||||
/// returns a list of APIs
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<Api>> GetApisAsync(int siteId);
|
||||
|
||||
/// <summary>
|
||||
/// returns a specific API
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<Api> GetApiAsync(int siteId, string entityName);
|
||||
|
||||
/// <summary>
|
||||
/// Updates an API
|
||||
/// </summary>
|
||||
/// <param name="api"></param>
|
||||
/// <returns></returns>
|
||||
Task UpdateApiAsync(Api api);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user