A Web api job scheduler written in C# .NET CORE This application is tested in Windows7 x64 with .NET CORE 2.1
required for development mode: .NET Core2.1 optional: Visual Studio 2017
<project_root>\WebAPI\Properties\launchSettings.json: Setup the port in applicationUrl. Example:
"WebAPI": { "commandName": "Project", "launchBrowser": false, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, "applicationUrl": "https://localhost:5001;http://localhost:5000" }
<project_root>\WebAPI\Properties\imgur_setting.json:
{ "BaseUrl": "https://api.imgur.com", "Token": "<imgur_api_token>", "GetImageUrl": "3/account/me/images", "PostImageUrl": "3/image" }
<imgur_api_token>: The oauth2 access token. See https://apidocs.imgur.com for requesting the tokens from imgur.
- cd to <project_root>\WebAPI
- execute the command: "dotnet run"
- the service will be started.
- download the release at https://github.com/hygoh2k/dumbo/releases/tag/
- unzip the file and go into the folder
- in command prompt, execute "WebAPI.exe" to start the service
Retrieve the uploaded images from imgur account
Example: https://localhost:5001/v1/image
Example: https://localhost:5001/v1/image/upload
Input body in JSON: { "urls" : [ "https://cptv.org/wp-content/uploads/2017/04/Big-Pacific_ProgramMain.jpg", "https://cptv.org/wp-content/uploads/2017/04/Big-Pacific_ProgramMain.jpg", "https://www.planwallpaper.com/static/images/computer-desktop-wallpapers-3d.jpg", "https://www.nosuchimage.com/static/images/wallpaper-scenic-marcin-guitar-desktop-26218.jpg", "https://www.planwallpaper.com/static/images/wallpaper-scenic-marcin-guitar-desktop-26218.jpg" ] }
Returns: {"jobId":"25e90440-5823-4fe9-a40d-0323fbd30079"}
Example: https://localhost:5001/v1/image/job?id=25e90440-5823-4fe9-a40d-0323fbd30079
Returns: {"id":"25e90440-5823-4fe9-a40d-0323fbd30079","created":"2018-11-28T15:36:13.3994004Z","finished":"2018-11-28T15:36:38.0064004Z","status":"completed","uploaded":{"pending":[],"complete":["https://i.imgur.com/51On245.jpg","https://i.imgur.com/rROv9C1.jpg","https://i.imgur.com/CdoiKIh.jpg"],"failed":["https://www.nosuchimage.com/static/images/wallpaper-scenic-marcin-guitar-desktop-26218.jpg"]}}