harishamdani / DiffAPI

A sample project to compare two strings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

  1. Open the solution file with VS 2015 Community Edition.
  2. Restore the NuGet packages.
  3. Click Run.

API USAGE

  1. PUT /v1/diff/{id}/left { "data" : "the encoded binary data" }

  2. PUT /v1/diff/{id}/right { "data" : "the encoded binary data" }

  3. GET /v1/diff/{id} { diffResultType: "result type" // Could be Equals, SizeDoNotMatch, ContentDoNotMatch diffs: [{ offset: int, length: int }] }

About

A sample project to compare two strings.

License:MIT License


Languages

Language:C# 82.2%Language:JavaScript 11.7%Language:HTML 5.6%Language:CSS 0.4%Language:ASP 0.1%