SkywardApps / popcorn

Popcorn is a .Net Middleware for your RESTful API that allows your consumers to request exactly as much or as little as they need, with no effort from you.
https://skywardapps.github.io/popcorn/
MIT License
59 stars 19 forks source link

Added [InternalOnly] attribute #35

Closed 96andrei closed 6 years ago

96andrei commented 6 years ago

Description

Added [InternalOnly] attribute. If the client tries to expand an object or to read a property or value marked [InternalOnly(true)], it will throw an exception. If marked InternalOnly(false) it will return null instead.

Related Issue

34

Motivation and Context

34

How Has This Been Tested?

I created a few Unit Tests inside the ExpanderTests.cs file. Every test was passed.

alexbarbato commented 6 years ago

at a glance, this looks really great! We will finish the review tomorrow probably and thank you so much!