https://github.com/basdijkstra/rest-assured-net
C# DSL for writing readable tests for HTTP-based APIs
https://github.com/basdijkstra/rest-assured-net
api http json rest test-automation testing testing-library xml
Last synced: 5 days ago
JSON representation
C# DSL for writing readable tests for HTTP-based APIs
- Host: GitHub
- URL: https://github.com/basdijkstra/rest-assured-net
- Owner: basdijkstra
- License: apache-2.0
- Created: 2022-10-09T09:44:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-24T08:39:08.000Z (29 days ago)
- Last Synced: 2025-12-25T20:54:11.485Z (28 days ago)
- Topics: api, http, json, rest, test-automation, testing, testing-library, xml
- Language: C#
- Homepage:
- Size: 626 KB
- Stars: 186
- Watchers: 7
- Forks: 24
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# RestAssured.Net
  
RestAssured.Net brings the power of REST Assured to the C# / .NET ecosystem.
With RestAssured.Net, writing tests for your HTTP APIs is as simple as
```csharp
using static RestAssured.Dsl;
[Test]
public void DemonstrateRestAssuredNetEaseOfUse()
{
Given()
.When()
.Get("http://api.zippopotam.us/us/90210")
.Then()
.StatusCode(200)
.And()
.Body("$.places[0].state", NHamcrest.Is.EqualTo("California"));
}
```
All features of the library are described and demonstrated in the [RestAssured.Net Usage Guide](https://github.com/basdijkstra/rest-assured-net/wiki/Usage-Guide).
### Where can I get RestAssured.Net?
You can add RestAssured.Net to your project using [NuGet](https://www.nuget.org/packages/RestAssured.Net):
`dotnet add package RestAssured.Net` or `nuget install RestAssured.Net`
RestAssured.Net is also available through [GitHub Packages](https://github.com/basdijkstra/rest-assured-net/pkgs/nuget/RestAssured.Net).
### Want to contribute?
That's awesome! Before you get to work and submit a pull request, though, I'd appreciate you [telling me a little more about your idea](https://github.com/basdijkstra/rest-assured-net/discussions).
Oh, and if you find a bug, or if you think something is missing from RestAssured.Net, feel free to [submit an issue](https://github.com/basdijkstra/rest-assured-net/issues).