Hi,
public class FilterRoutesDocumentFilter : IDocumentFilter
{
public void Apply(SwaggerDocument swaggerDoc, SchemaRegistry schemaRegistry, IApiExplorer apiExplorer)
{
swaggerDoc.paths["/api/services/app/role/GetRoleForEdit"].post = null;
}
}
I hope these help.
Hi,
You can check this topic #448@6bab272b-0a26-41ea-b1f4-6c3381bffea0.
As a short answer, after adding nuget package you need to enable cors in WebModule class like
GlobalConfiguration.Configuration.EnableCors();
Also you need to use EnableCors attribute in app service interface for dynamic api methods not in app service itself.
Hi,
Zero is not defined from beginning for http verbs other than POST. Because of that DynamicApiControllerBuilder is not using convetional verbs right now.
You can add ".WithConventionalVerbs()" to dynamic api controller builder configuration of your project but it might cause problems.
We can not guarantee that it works.
There are 2 ways actually.
If you include script using Html.IncludeScript like
@Html.IncludeScript("~/Abp/Framework/scripts/libs/abp.signalr.js")
it is going to add a parameter to the end of script file resulting like
<script src="/Abp/Framework/scripts/libs/abp.signalr.js?v=635911474900548694" type="text/javascript"></script>
Second way is to add this parameter manually if you dont want to use Html.IncludeScript syntax. In this way you can change your script include like this:
<script src="~/AbpScripts/GetScripts?v=@(Clock.Now.Ticks)" type="text/javascript"></script>
I hope this helps.
It's in Abp.Web.Models namespace. You must have ABP version 0.7.7.0 or higher.
You can put your file in Core project since it is a domain service. You can also add an unique index on Name field of your entity.
Select2 is not included in ASP.NET Zero by default. First you should include select2 javascript (select2.js) and css files (select2.min.css & select2-bootstrap.min.css).
Your select item also must have class name 'select2me' , because metronic handles it this way.
If you create modal on the fly, then you must also trigger jquery select2 by yourself on modal's 'shown.bs.modal' event.
Example html:
<select class="form-control select2me select2-multiple" multiple>
<optgroup label="Alaskan">
<option value="AK">Alaska</option>
<option value="HI" disabled="disabled">Hawaii</option>
</optgroup>
</select>
Example js for modal shown:
modal.on('shown.bs.modal', function () {
modal.find('select.select2me').select2({
placeholder: "Select",
width: 'auto',
allowClear: true
});
});
You can download metronic fom here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases/download/v1.7.0/metronic-v4.5.3.zip">https://github.com/aspnetzero/aspnet-ze ... v4.5.3.zip</a>
I hope this helps .