Git Product home page Git Product logo

breg_db_api_rust's Introduction

Breg organisasjonsroller

ToDo

  • docker mongodb.
  • fungerende kode (mvp)
    • tilby api
    • hente fra breg
    • lagre i db
    • hente organisasjoner personer tilhører.

Bakrund

tanken med denne er å lage en liten app som henter ned org info fra breg sine åpne apier, og organisere det for oppslag via api. og å lære litt rust.

Første commit fungerer ikke, og er utarbeidet i hovedsak av phind søkemotoren drevet av ChatGPT. dette er søket som ga koden: https://www.phind.com/search?cache=6577fb84-4e7a-4c21-ab63-0e04d6fa8f92

i want to write a small rust program that exposes an http endpoint, and integrates with mongodb.
heres a description of what the program should do:
- expose an http endpoint that takes a path parameter on "/org/[9-digit number]", and return the json object identified by that 9-digit number in the db. 
- if the object is not in the db, search this api:
"https://data.brreg.no/enhetsregisteret/api/enheter/[9-digit number]/roller" for the information, and insert it into the db, and also return it to the http endpoint the program exposes. 
- the db credentials are user: "user" and password: "pass", the db url is "mongodb.local" 

plese request additional information if it is needed to complete the program. 

breg_db_api_rust's People

Watchers

Thor avatar

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.