DiffAPI
A sample project to compare two strings.
- This API is used to compare two base64 encoded binary data.
- In order to compare both data, you need to submit both data in advance with an arbitrary ID (number).
STEP.
HOW TO RUN.
- Open the solution file with VS 2015 Community Edition.
- Restore the NuGet packages.
- Click Run.
API USAGE
-
PUT /v1/diff/{id}/left { "data" : "the encoded binary data" }
-
PUT /v1/diff/{id}/right { "data" : "the encoded binary data" }
-
GET /v1/diff/{id} { diffResultType: "result type" // Could be Equals, SizeDoNotMatch, ContentDoNotMatch diffs: [{ offset: int, length: int }] }