Skip to content

Web API that Create or Delete file according to request

License

Notifications You must be signed in to change notification settings

Nuri-Akseli/FileUploadAPI

Repository files navigation

Description

This is a simple .Net Core Web API project that hold files and according to request file can be uploaded or existed file can be deleted

Database

A database is used to determine whether incoming requests are from registered users. In addition, it is aimed to keep the server cleaner by aiming for each user to have a unique directory.

fileUploadAPIDatabase

Requests

1-) /api/File/Post This request used for Upload File to Server

Parameters

  • Username
  • Password
  • Folder
  • File

Response

{ "path": "File Path", "name": "File Name with Extension" }

2-) /api/File/Delete This Request used for delete existed file in server

Parameters

  • Username
  • Password
  • Path
  • name

Response

Only return httpcode 200 if request is successful

Postman Examples

Post Delete

FileUploadAPI.postman_collection.json

About

Web API that Create or Delete file according to request

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages