NIST is a non-arrogant brother of REST. Tired of hearing what your HTTP API must do to become REST? To be NIST an HTTP API needs to do only 3 things:
- Use different URIs for different operations/requests
- Utilize GET for read and other verbs for write.
- Use 2xx codes for success and other codes for errors.
And even if an API breaks a rule a few times - that's okay, it's still NIST.
NIST is a software architectural style. But the project also provides a handful of packages, aiming to help you create and consume HTTP APIs, especially the NIST ones:
- C# Nist.Logs - Request and response logs.
- C# Nist.Error - Exceptions to responses mapping.
- C# Nist.Bodies - Request and Response as strings in
HttpContext
. - C# Nist.Queries - Query strings from objects.
- C# Nist.Registration - Simple DI registration of clients.
- C# Nist.Responses -
HttpResponse
to a concrete response object.