I don't seem to get json property names working.
abp seems to normalise every request response regardless of the json property names. see below sample and how have set my field properties. how can I.get it to work and have my API responses reflect well i.e CityName ? I also want to return 5,000 records per page for this service, the default seems to be 1,000 max.
public class Videogame { [JsonProperty("CityName")] public string City_Name { get; set; } [JsonProperty("ReleaseDate")] public DateTime Release_Date { get; set; } }
7 Answer(s)
-
0
hi
I.get it to work and have my API responses reflect well i.e CityName ?
What is your ABP Framework version?
I also want to return 5,000 records per page for this service, the default seems to be 1,000 max.
I think you can change this.
https://github.com/abpframework/abp/blob/3fcdeeeb05810b7a2e162f212ef435b81d412aa5/framework/src/Volo.Abp.Ddd.Application.Contracts/Volo/Abp/Application/Dtos/LimitedResultRequestDto.cs#L25
-
0
What is your ABP Framework version?
2.3 am also planning to upgrading to 4.3
https://github.com/abpframework/abp/blob/3fcdeeeb05810b7a2e162f212ef435b81d412aa5/framework/src/Volo.Abp.Ddd.Application.Contracts/Volo/Abp/Application/Dtos/LimitedResultRequestDto.cs#L25
Any shortcut to change this without passing through the ABP source code ?
-
0
2.3 am also planning to upgrading to 4.3
The
JsonProperty
attribute namespace should belongNewtonsoft.Json
, Can you check?Any shortcut to change this without passing through the ABP source code ?
Default value of
MaxMaxResultCount
will be 1,000. SetLimitedResultRequestDto.MaxMaxResultCount
static property to increase it. -
0
2.3 am also planning to upgrading to 4.3
The
JsonProperty
attribute namespace should belongNewtonsoft.Json
, Can you check? Yes this belongs to Newtonsoft.json but it doesn't work on abp, seems the abp api generator doesn't recognise property namesAny shortcut to change this without passing through the ABP source code ?
Default value of
MaxMaxResultCount
will be 1,000. SetLimitedResultRequestDto.MaxMaxResultCount
static property to increase it. Which specific file in my project can I set this? -
0
the abp api generator doesn't recognise property names
It will support in v4.3. https://github.com/abpframework/abp/issues/7776
Which specific file in my project can I set this?
This is a static property, you can change it in places, such as Program.cs, Startup.cs
-
0
Thank you.
-
0
This two works well. thank for the great work.