From 1d300bb6ade1d7e76c55f641cf5a31890f5962ed Mon Sep 17 00:00:00 2001 From: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com> Date: Wed, 13 Mar 2024 15:03:04 +0000 Subject: [PATCH] Initial commit --- .gitignore | 181 ++++++++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 21 ++++++ README.md | 17 +++++ renovate.json | 6 ++ 4 files changed, 225 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 renovate.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..418ffd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,181 @@ +## Rider files +*/.idea/* +/.idea/* +!/.idea/.idea.* +/.idea/.idea.*/* +!/.idea/.idea.*/.idea +/.idea/.idea.*/.idea/* +!/.idea/.idea.*/.idea/runConfigurations +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +.vscode + +# User-specific files +*.suo +*.user +*.sln.docstates +.vs/ + +# Build results + +[Dd]ebug/ +[Rr]elease/ +x64/ +[Bb]in/ +[Oo]bj/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.log +*.svclog +*.scc + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# Click-Once directory +publish/ + +# Publish Web Output +*.Publish.xml +*.pubxml +*.azurePubxml + +# NuGet Packages Directory +## TODO: If you have NuGet Package Restore enabled, uncomment the next line +packages/ +## TODO: If the tool you use requires repositories.config, also uncomment the next line +!packages/repositories.config + +# Windows Azure Build Output +csx/ +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +![Ss]tyle[Cc]op.targets +~$* +*~ +*.dbmdl +*.[Pp]ublish.xml + +*.publishsettings + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +App_Data/*.mdf +App_Data/*.ldf + +# ========================= +# Windows detritus +# ========================= + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Mac desktop service store files +.DS_Store + +_NCrunch* + +# Add migrations (Will come back and look at how to handle migrations) +*/Migrations/LegacyTramsDb + +# node_modules +CypressTests/node_modules + +# screenshots and videos +CypressTests/cypress/screenshots +CypressTests/cypress/videos + +# ZAP +.ZAP +.java +ZAP-Report.html + +# Homebrew +Brewfile.lock.json + +# Environment variables +.env +.env.* +.env.local +.env.*.local +!.env.development.local.example +!.env.database.example + +# secret files +.secret.* + +### Terraform +.terraformrc* +terraform.rc* +*.tfstate* +*.tfvars* +!terraform.tfvars.example +.terraform/ +backend.vars diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c6fc4f5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Department for Education - Digital + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..346dfe1 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# identifiers-api +Simple api for getting unique identifiers from the Academies Database + +## API Key Management + +Api Key management is done through the use of config files. There are currently placeholder entries in the various forms of `appsettings.json`, but new keys should *not* be added to these files, or committed to this repository. + +Api Keys are provisioned at the environment level, and are stored as JSON objects in the following format: + +```json +{ + "userName": "", + "apiKey": "" +} +``` + +If injected through the environment, use `ApiKeys__x` naming conventions for the variables, as .NET will automatically configure this for us. e.g. `export ApiKeys__0=xxxx` will define the first API in the array. diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..39a2b6e --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ] +}