Git Product home page Git Product logo

docsapi's Introduction

DocsAPI

RESTfull API to manage file uploading & downloading

Tools & Technology: Visual Studio 2015. ASP.NET Web API .NET Framework 4.5

Purpose: We all need document/files uploading in our applications. In this repository, we are creating a standard RESTFull Service (using ASP.NET WEB API) which will allow you to upload your documents and will give you unique IDs. You then can manage those IDs in your own DB. Later you may use those IDs and download the document from API.

Repo contains:

  • DocsAPI project (ASP.NET Web API)
  • DocsAPITestConsumer Project (ASP.NET MVC Tester project which is consuming DocsAPI)
  • DBScripts folder (This contains schema of database being used by Web API
  • DataFramework folder (This contains DAL & Entities Project)
  • Common folder (this contains common utility projects)

oAuth Support:

  • DocsAPI contains oAuth based token generation

How to Start:

  • You can ASP.NET Web API video series if you have any question or confusion regarding ASP.NET Web API or token generation or how to consume token

  • Check "DocsAPITestConsumer\BaseController.cs" file

  • Check "DocsAPITestConsumer\Models\TokenHelper.cs" file

  • Check "DocsAPITestConsumer\Views\Home\Index.cshtml"

  • Right click on solution file in "Solution Explorer", Go to Properties and then choose "Multiple" and then set "Start" for "DocsAPI" & for "DocsAPITestConsumer"

  • Create a new database, execute "DataScripts\DB_script.txt" on your new DB to create required objects.

  • Open "DocsAPI\web.config" file and update connection string

  • Rebuild the solution and run by F5

  • You will see different links on your page for your testing on "http://localhost:2833/Home/Index".

  • Note: In "index.cshtml" page, ID of a file is hardcoded. You may upload few files and then update this ID with newly generated ID (you may get it from DB)

docsapi's People

Contributors

bilalshahzad139 avatar

Watchers

James Cloos avatar

docsapi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.