Rest-rajapinnan hyödyntäminen sovellusprojektissa
Ekholm, Tom (2021)
Ekholm, Tom
2021
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2021060915345
https://urn.fi/URN:NBN:fi:amk-2021060915345
Tiivistelmä
Tämän kehittämistyön tavoitteena oli tutustua avoimiin rajapintoihin, niiden toimintaan ja toteuttaa sovellusprojekti hyödyntäen valittua rajapintaa. Työlle ei ollut toimeksiantajaa vaan aihe syntyi tekijän omasta mielenkiinnosta aihetta kohtaan.
Teoriaosuudessa tutustutaan avoimeen dataan, avoimiin rajapintoihin ja REST-arkkitehtuuriin. Tarkempaan tarkasteluun otetaan Digitrafficin avoin REST-rajapinta, joka tarjoaa tietoja Suomen rataverkosta ja sen liikenteestä. Toteuttamisosuudessa alkuun tutustutaan rajapinnan dokumentaatioon, minkä jälkeen suunnitellaan ja rakennetaan sovellus, jonka tarkoituksena on toimia mobiilina juna-aikatauluna. Lopuksi tarkastellaan projektin lopputuloksia, kulkua ja jatkokehitystarpeita. The objective of this Bachelor’s thesis was to learn about public API’s (Application Programming Interface), how they work and to realise a software project with the gained knowledge. The thesis had no commissioner and its topic was chosen because it seemed interesting.
The theoretical background starts by briefly reviewing open data, public API’s and REST architecture. Once the theoretical background has been established the project portion of the thesis is introduced. Digitraffic’s API is introduced and chosen as the data source for the project and it’s examined further in order to utilize it. After getting acquinted with the API documentation, a rough design for a web application is devised and then carried out. Finally after completing the project, the final product, the development process and ideas for further development are reviewed.
Teoriaosuudessa tutustutaan avoimeen dataan, avoimiin rajapintoihin ja REST-arkkitehtuuriin. Tarkempaan tarkasteluun otetaan Digitrafficin avoin REST-rajapinta, joka tarjoaa tietoja Suomen rataverkosta ja sen liikenteestä. Toteuttamisosuudessa alkuun tutustutaan rajapinnan dokumentaatioon, minkä jälkeen suunnitellaan ja rakennetaan sovellus, jonka tarkoituksena on toimia mobiilina juna-aikatauluna. Lopuksi tarkastellaan projektin lopputuloksia, kulkua ja jatkokehitystarpeita.
The theoretical background starts by briefly reviewing open data, public API’s and REST architecture. Once the theoretical background has been established the project portion of the thesis is introduced. Digitraffic’s API is introduced and chosen as the data source for the project and it’s examined further in order to utilize it. After getting acquinted with the API documentation, a rough design for a web application is devised and then carried out. Finally after completing the project, the final product, the development process and ideas for further development are reviewed.