Commit Graph

62 Commits

Author SHA1 Message Date
James Tombleson 22e9638f88 namespace updated and using 2023-08-06 13:33:45 -07:00
James Tombleson 3e1a8e8419 Using updates 2023-08-06 13:32:35 -07:00
James Tombleson bd05c45e6e Updated startup to reflect the correct consts and roles 2023-08-06 13:31:00 -07:00
James Tombleson a3085bb27f Article controller was updated and tests updated
continuous-integration/drone/pr Build is passing Details
2023-08-04 23:07:04 -07:00
James Tombleson dcb81315bf Adding the calls to track authors for metrics but also to attempt to find AI writers.
continuous-integration/drone/pr Build is passing Details
2023-07-29 10:02:43 -07:00
James Tombleson 82dea60126 Updated DiscordWebHooks to handle userId
continuous-integration/drone/pr Build is passing Details
2023-07-29 09:44:15 -07:00
James Tombleson 463cb893e8 Logging update 2023-07-23 22:57:54 -07:00
James Tombleson a416746269 DiscordNotificationController.cs got a new route, moved over to ActionResults, records are now tracking the userId and returning common result classes 2023-07-23 22:57:35 -07:00
James Tombleson 7344d2bdd2 CodeProjectController.cs was updated to support ActionResults and new route 2023-07-23 22:56:26 -07:00
James Tombleson 19d8e3e925 ArticlesController.cs was cleaned up and supports results with details now 2023-07-23 22:56:06 -07:00
James Tombleson fa14562fd4 Updated namespaces, consts, startup and warnings are now errors in the api project 2023-07-23 22:55:20 -07:00
James Tombleson 2bc99afe63 Moved controllers to v1 namespace and updated routes 2023-07-23 22:54:00 -07:00
James Tombleson 7b24ba16f7 moved the IdentityService.cs to services and warnings are now errors 2023-07-23 22:52:18 -07:00
James Tombleson 9b86f9e84d Cleaned up the consts and moved the Authorization.cs to the correct namespace 2023-07-23 22:50:41 -07:00
James Tombleson 83203f967d Moved domain objects from the API to Domain 2023-07-23 22:50:03 -07:00
James Tombleson 3697093df1 Moved AccountController.cs to IdentityController.cs and defined roles on a route
continuous-integration/drone/pr Build is passing Details
2023-07-23 16:22:49 -07:00
James Tombleson c4a84e9adc moved some rest actions over to roles 2023-07-23 16:22:11 -07:00
James Tombleson 16e63aa4a1 Added the Authorization.cs file to contain policy, claims and roles 2023-07-23 16:20:47 -07:00
James Tombleson b9c07eda7d Refactored how the start up works... everything in one file was getting very messy to read 2023-07-23 16:20:16 -07:00
James Tombleson 71319c05ef Controllers have been updated to support Authorize 2023-07-14 22:25:44 -07:00
James Tombleson bc79b507ac Added a API Key Attribute but not used yet 2023-07-14 22:25:11 -07:00
James Tombleson 0aa6c1489d Adding roles into the Identity side 2023-07-14 22:24:32 -07:00
James Tombleson 712ce4f4da Added notes, db migrations on startup, and injecting admin and user roles 2023-07-14 22:23:45 -07:00
James Tombleson 4cacc03fb8 Getting things setup to support token refresh
continuous-integration/drone/pr Build is failing Details
2023-07-10 22:41:39 -07:00
James Tombleson fd60906a20 Adding the auth layers, not 100% finished yet 2023-07-09 22:11:30 -07:00
James Tombleson d28ad7424f User defined source subscriptions have been added and starting to let users take ownership of discord Notifications 2023-07-09 22:10:51 -07:00
James Tombleson 58229b1348 Moving the Subscriptions over to DiscordNotifications as this will be the automated posting compared to user feeds 2023-07-09 21:29:33 -07:00
James Tombleson 9e2b44df7c Controllers have been updated with Authorize calls and tables getting loaded from DI 2023-07-06 22:26:19 -07:00
James Tombleson 3f4de34115 new identity service was added to assist with auth 2023-07-06 22:25:33 -07:00
James Tombleson 06218af516 Api domain items have been added but subject to change 2023-07-06 22:24:50 -07:00
James Tombleson dff5556e06 jwt package was added 2023-07-06 22:23:22 -07:00
James Tombleson f081a59229 startup was updated to inject ef, tables, jwt, and update swagger with bearer token auth 2023-07-06 22:22:55 -07:00
James Tombleson d6e6527091 api adds ef packages and adds db context to start up 2023-06-25 21:05:12 -07:00
James Tombleson d286c4fd9a controller updated for entity 2023-06-25 21:03:27 -07:00
James Tombleson 0797fb8502 Souces has been moved to ef and with entites 2023-06-23 23:01:40 -07:00
James Tombleson 0b68261181 discord web hooks updated with ef 2023-06-23 21:55:56 -07:00
James Tombleson 7d176cb643 controller updated for entity 2023-06-23 20:11:09 -07:00
James Tombleson 557e5d757c Adding another location for appsettings file to make it easier with Docker, maybe.
continuous-integration/drone/pr Build is passing Details
2023-06-17 11:59:37 -07:00
James Tombleson a3b1904923 You can access /health without a api key now.
continuous-integration/drone/pr Build is passing Details
2023-06-13 21:32:49 -07:00
James Tombleson e4c5d1be29 code was added to allow multiple api keys to talk to the api. 2023-06-12 15:15:04 -07:00
James Tombleson 70440aa3f5
Features/subscription details dto (#29)
* DTO was updated to reflect the new options

* SubscriptionsController.cs added id's as part of the path not query

* Refactored DiscordNotificationJob.cs to break apart the nesting

* Added a test to make sure commits would not be sent based on model values
2023-04-14 21:39:02 -07:00
James Tombleson 84b4137bdd
Features/codeproject/subscription options (#28)
* Updated migrations to add new columns to subscriptions

* repos updated with new columns

* dto updated with new columns

* subscription model was updated

* DiscordNotificationJob.cs was updated to reflect subscription options

* updated seed for codeproject subscriptions
2023-04-13 22:13:06 -07:00
James Tombleson 117653c001
Features/add code projects watcher (#26)
* Migration added to update Articles to define if Release or Commit

* CodeProjectWatcher Job was created from GithubWatcher as this will target services like gitlab and also gitea.

* article model was updated to reflect migration changes

* Added CodeProjects to startup

* Seed was updated with CodeProjects and some new defaults

* Added Delete call for Sources

* Added a route to cleanup all records based on SourceId

* Added CodeProject const values to load from config

* minor changes to the rss controller

* Added codeprojects to the routes to trigger the job
2023-04-10 22:59:13 -07:00
James Tombleson a25c44d8cc
Features/api/youtube source (#25)
* corrected the youtube url getting added wrong

* updated seed
2023-04-08 10:10:08 -07:00
James Tombleson bacc04ad7d
Features/enabling youtube (#24)
* Adding a youtube controller to trigger the job

* Renamed jobs controller to rss

* cleaned up background jobs and added youtube to the startup.

* Handled merge issues and validated things are still working.
2023-04-08 09:30:59 -07:00
James Tombleson 4b6ba97a87
fixed code to allow compile (#23) 2023-04-03 09:32:42 -07:00
James Tombleson c0251e2485
Features/discord errors (#22)
* catching another http error code.

* more discord logging

* Setting min logging to debug for now.

* program logging is set to info but job logging is debug.
2023-04-03 09:31:00 -07:00
James Tombleson 33bf88d866
Features/discord errors (#21)
* catching another http error code.

* more discord logging

* Setting min logging to debug for now.
2023-04-03 08:57:19 -07:00
James Tombleson f1f0e50098
Features/discord logging (#18)
* Had the wrong flag for rss enabled

* Adding more logging for discord.
2023-04-01 16:22:44 -07:00
James Tombleson 09fe274752
Features/less comples config managment (#16)
* New single const file for all config info

* seed was updated to reflect route params

* Adjusting config loads to make it easier to follow

* test updates for config loading
2023-04-01 08:53:34 -07:00