To Protect To Serve

No mistake but pure intent

To Protect and Serve

Disclaimer

Passionate for APIs

Interface Protection at its Best

You can share how you like this article by clicking the little applauding hands up to 50 times.

The Misbehaving API-Consumer

Protect from Exposure

Document Behavior

Document behavior that can be dangerous

Producing HTTP Status Codes

Consuming HTTP Status Codes

The malicious actor behaves inherently bad

Behavior and Test-Driven Development

Describing behavior through scenario’s

Given some initial situation
When something happens
Then something is the result.
Given the service consumer is not authorized
And the service is just called by that consumer
When the service called within a second by the same consumer
Then an error-response with error code 401 is returned
And the firewall is reconfigured to block the consumer for 30 minutes
Document how to act in response to bad behavior
Clapp up to 50 times, to share that you like the story.

Conclusion

Disclaimer

Credits

Some people see things and ask ‘Why?’ I dream of things and ask ‘Why not?’

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store