Mid Sweden University

miun.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Utveckling av en API-Hubb: Django REST Framework och React
Mid Sweden University, Faculty of Science, Technology and Media, Department of Information Systems and Technology.
2022 (Swedish)Independent thesis Basic level (university diploma), 10 credits / 15 HE creditsStudent thesis
Abstract [sv]

Idag hämtar anställda på Bredband2 data från olika databaser på ett interntsystem som kallas en API-Hubb.  Denna API-Hubb samlar all informationsom kunder, telefonnummer, tjänster och kunders personliga data genomAPI (Application Programming Interface) förfrågningar.  Denna API-Hubbär begränsad i sin funktionalitet och ägs idag av ett externt företag som tarbetalt vid anslutningar av nya tjänster.  Det här arbetet avser att skapa enAPI-Hubb som utökar denna funktionaliteten genom att komplettera denparallellt eller att ersätta den.För att göra det behöver ett Python-baserat webbramverk användas som geren bra grund för att uppfylla arbetsgivarens krav samt erbjuda effektiva ochfunktionella  lösningmöjligheter.   De  funktioner  som  finns  på  existerandeAPI-Hubb  ska  få  utökade  anpassningsmöjligheter  genom  dynamisk  kodsom är skalbart och fungerar oavsett vilken funktion som ska utföras.Funktionalitet  och  utveckling  kommer  att  ske  till  stor  del  i  Django  RestFramework med programmeringsspråket Python.  För funktioner i använ-dargränssnittet kommer React att användas.  En uppgift är att få React ochDjango Rest Framework att interagera samt att arbetet ska använda sig avPostgreSQL som databas.Arbetet startar med att göra förundersökningar över vilket webbramverksom  ska  användas.   Django  Rest  Framework  valdes  och  installation  ochgrundkonfiguration  av  Django  startades.   När  den  grundliga  konfigura-tionen  ägt  rum  så  börjar  utvecklandet  av  API  endpoints,  models,  viewsoch funktioner för testmiljö.  Det bestämdes olika utföranden för GET för-frågningar och POST förfrågningar riktade mot olika endpoints. Resultatenvisar på att det är fullt möjligt att utveckla en API-Hubb med utökad funk-tionalitet  och  anpassningsmöjligheter  med  Django  React  Framework  ochReact genom att skapa en dynamisk kod som arbetar mot flera funktionerberoende på vilken indata som hanteras.

Abstract [en]

Today, employees at Bredband2 retrieve data from various databases on aninternal system called an API-Hub.  This API-Hub collects all informationsuch  as  customers,  telephone  numbers,  services  and  customers  personaldata through API (Application Programming Interface) requests. This API-Hub is limited in its functionality and is currently owned by an externalcompany that charges for connections of new services.  This project is in-tended to create an API Hub that expands this functionality by supplement-ing or replacing it.To do so, a Python-based web framework must be used which provides agood basis for meeting the foreman’s requirements as well as offering effi-cient and functional solution options.  The functions available on the exist-ing API-Hub will have extended customization options through dynamiccode that is scalable and works regardless of which function is to be per-formed.Functionality and development will take place in the Django Rest Frame-work with the programming language Python. React will be used too han-dle  functions  in  the  user  interface.   One  of  the  tasks  is  to  get  React  andDjango Rest Framework to interact and that PostgreSQL is used as the database.The work starts with doing preparatory research on which web frameworkis to be used.   Django Rest Framework was selected and installation andbasic configuration of Django was started.   Once the thorough configura-tion had taken place, the development of API endpoints, models, views andfunctions for the test environment began.  Different rules were determineddepending on whether it was a GET request or a POST request, which weresent to different endpoints.  The results showed that it is entirely possibleto develop an API-Hub with extended functionality and customization op-tions with Django React Framework and React by creating a dynamic codethat works towards several functions depending on which input data is han-dled.

Place, publisher, year, edition, pages
2022. , p. 74
Keywords [sv]
Django, Django Rest Framework, API, Python, React, Post-greSQL, databas, JavaScript, JSON
National Category
Computer Engineering
Identifiers
URN: urn:nbn:se:miun:diva-45350Local ID: DT-V22-G2-005OAI: oai:DiVA.org:miun-45350DiVA, id: diva2:1676596
Subject / course
Computer Engineering DT1
Educational program
Network Management TNÄTG 120 higher education credits
Supervisors
Examiners
Available from: 2022-06-27 Created: 2022-06-27 Last updated: 2025-09-25Bibliographically approved

Open Access in DiVA

fulltext(1544 kB)177 downloads
File information
File name FULLTEXT01.pdfFile size 1544 kBChecksum SHA-512
8f57f3f856fc444f7250cd7cf88193334f67b49cdc59aadb3147c66ef6561f4f9a3ea2f9b8b1dc67c417bb21a65a492337652adc5280d040b5f4783d93a2e966
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Harnesk, Lukas
By organisation
Department of Information Systems and Technology
Computer Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 178 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 319 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf