Giter VIP home page Giter VIP logo

de-institutions-api's Introduction

Builds Branch Status
Circle CI main CircleCI
SonarCloud main Quality Gate Status

de-institutions-api

Api to provide details of institutions and schools in Northern Ireland

Access

You will need to contact the team to get an api key and secret to allow your application to consume this api.

Diagram

SchoolsApi

Contents of this file

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation. The documentation is © Crown copyright and available under the terms of the Open Government 3.0 licence.

Project Documentation

Why did we build this project?

We built this api so many applications and users can have access to a list of schools and institutions in Northern Ireland.

What problem was it solving?

This solves having to create a school table in every single application and adding the same code over and over again.

How did we do it?

This is a dotnet core application which uses Mysql to store the school data, Entity Framework for data access and JWT to authenticate applications to allow them to use the api. We have hosted this in the Gov UK PaaS Cloud foundry platform using Circle CI to deploy. This uses Swagger as a handy UI.

Future plans

We may introduce a more advanced search if needed.

Deployment guide

To run the databases you need mysql installed. Then run the below commands to set up the database:

  • update-database

Restore the nuget package. Then to build run "dotnet build" in command line then dotnet run to run the site.

Endpoints

GETS

/api/v1/Institution/GetAll - This gets all the institutions by using paging so you can select how many pages and per page you want

/api/v1/Institution/GetByReferenceNumber - Gets institution by its reference number

/api/v1/Institution/SearchByName - Gets Institution by name

/api/v1/Institution/SearchSchoolByName - Gets School (primary, post primary, grammar etc) by name

/api/v1/Institution/GetSchoolByReferenceNumber - Gets school (primary, post primary, grammar etc) by reference number

POST - TBA

PUT - TBA

DELETE - TBA

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.