Implementation of The REST API
Implementation of The REST API
Abstract—Many parking lots are still operate manually, and Based on the preliminary description above, it can be
delays are commonly caused during the parking process when concluded that several problem points that are the purpose of
unforeseen events occur, such as when the parking ticket paper this activity include providing information and providing easy
runs out or the ticket machines jam. New services are added to parking processes for users who will do parking. In addition, it
the parking system online with the aim of decreasing the amount also anticipates problems in the vehicle parking process such as
of time that people spend waiting in line to park. This is done by the problem of running out of parking tickets, jammed ticket
conducting a parking booking system to obtain a parking ticket machines that can prolong the parking queue. Based on the
in the form of a QR Code as well as parking information, preliminary description, this research aims to address several
payment transactions, and other things that interfere with the
problem points, including:
parking process. In this study, the Forward Chaining Algorithm
will be combined with the survey research method as the 1) Providing accessible information and streamlining the
research methodology. The Rapid Application Development parking process for users.
model is used for analysis and design (RAD). Representational
2) Anticipating and preventing common issues
State Transfer Application Programming Interface (REST API)
is one of the solutions offered to overcome this problem. With the encountered during the vehicle parking process, such as ticket
advent of online parking services, it is envisioned that customers shortages and queue delays.
who intend to park their vehicles in public spaces will be able to
The research problem revolves around the need for a more
reserve a parking space in advance, greatly simplifying the
process and eliminating the problem of the drawn out queue
efficient and convenient parking experience, particularly in
process. regions where parking services frequently face issues like long
queues and technical disruptions. These problems stem from
Keywords—Representational state transfer application traditional, manual parking processes that may not align with
programming interface (REST API); online parking ticket; quick modern expectations and urban development. The research
response code (QR Code); smart city; public transport seeks to answer the following questions:
409 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 14, No. 10, 2023
enhances the efficiency and convenience of parking services easily counterfeited. There are audit coupons, agent
within the Smart City ecosystem. This contribution addresses coupons and passenger coupons that are useful as
issues commonly encountered in parking processes and aligns control over the issuance of a ticket.
with modern urban development goals. The novelty that is
unique in this research is the application of the REST API in Ticket paper printers are those made of valuable
ordering tickets online using a mobile device QR Code, which paper/documents in the form of books issued by
is part of one of the solutions in the Smart City ecosystem. printing using a printer that is operated with a certain
ticketing system. One ticket book consists of four flight
II. LITERATURE REVIEW coupons, audit coupons, agent coupons and passenger
coupons.
A. Representation State Transfer Application Programming
Interface Electronic ticket is a ticket made electronically, where
all flight and passenger data written in it are stored in an
In 2000, after the Web scalability crisis was averted,
electronic document in the airline database or ticketing
Fielding named and described the Web architectural style with
system Provider Company. Passengers only need to
a Ph. on. Web services are custom built web servers that
bring a printout of the data which can be reprinted
support the needs of other sites or applications. Client
repeatedly.
programs use the Application Programming Interface (API) to
communicate with web services. In general, an API provides a C. Park
set of data and functions to facilitate interaction between Based on the results of studies in Guidelines for Planning
computer programs and allow them to exchange information as and Operation of Parking Facilities, measuring space
shown in Fig. 1[3]: requirements Parking at activity centers is determined
according to the nature and purpose of the parking. In practice
in the field, it must be adjusted to parking demand every type
of vehicle [12].
410 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 14, No. 10, 2023
being used in mobile marketing and advertising campaigns as a symbol alignment, error correction, and distortion
fast and effective way to connect with customers and provide compensation. The timing pattern allows the scanning device
end user content, including Web links, mobile coupons, airline to know the symbol size. There is also a required "quiet zone",
boarding passes, etc. Successful implementation of QR Code in a buffer area four modules wide that contains no data, to ensure
any of these fields requires knowledge of certain basic that the text or creation area is not mistaken for QR Code data.
information about the QR Code itself and the technology The function pattern on the QR Code can be seen in Fig. 4
associated with it. Although the QR Code was originally below.
designed to track automotive components and systems through
the manufacturing process and distribution supply chain, it
quickly spread to almost every other area where traditional
barcodes are used, as well as some entirely new ones [8]. The
following is an example of the display of the QR Code which
can be seen in Fig. 2.
411 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 14, No. 10, 2023
A. Data Collection Stage 4) Cutover: The transition phase resembles the final tasks
The data collection stage was carried out with the Literature in the SDLC implementation phase, including data conversion,
Study stage, carried out by searching for information from testing, switching to the new system, and user training.
books, e-books, websites, modules, journals, internet browsing Compared with traditional methods, the whole process is
and various other literature related to making the Forward compressed. As a result, new systems are built, shipped, and
Chaining algorithm application. Next is the observation put into operation more quickly.
method or observation is direct observation, which is an
activity that aims to obtain the necessary information by The Software Development Method using the RAD (Rapid
observing and recording and reviewing. Application Development) model has several advantages
compared to other software development methods, especially
B. System Development Stage in the context of project-based software development which
The stages of system development used in this application requires flexibility, speed and high response to changing needs.
are the Rapid Application Development (RAD) model, with Here are some of the advantages of RAD:
black box testing. The stages of the Rapid Application
Development (RAD) method can be seen in Fig. 5 below: 1) Rapid development: As the name suggests, RAD
emphasizes on rapid development. In this model, the main
focus is to produce a usable prototype or application quickly.
2) High customer engagement: RAD promotes active
customer or stakeholder engagement.
3) Flexibility: The RAD model is very flexible and can
handle changing requirements well.
4) Better quality: Through repeated iterations, RAD allows
teams to identify and address problems earlier in the
development cycle.
5) Emphasis on reusability: RAD encourages reusable
component-based development that can save time and effort in
subsequent project development.
6) Cost efficiency: While there are initial costs associated
with developing a prototype, long-term savings can be
achieved due to the reduction in changes that must be made in
Fig. 5. RAD phases [9].
later stages of the project.
7) Suitability for small-medium projects: The RAD
The explanation of these stages can be seen in the method is generally better suited for small to medium sized
following points: [10]. projects that require quick updates or upgrades.
8) Concentrate on key functionality: RAD focuses on the
1) Requirements planning: The requirements planning
key functionality required by customers, avoiding features that
phase combines elements of the systems planning and systems
may be unnecessary or annoying.
analysis phases of the SDLC. Users, managers, and IT staff
9) Risk reduction: By having prototypes that can be tested
members discuss and agree on business requirements, project
and evaluated, project risks can be reduced as problems can be
scope, constraints, and system requirements. The requirements
identified early.
planning phase ends key issues and obtains management's
10) Improved team collaboration: RAD encourages active
permission to continue.
collaboration among development team members and
2) User design: During the user design phase, the user
stakeholders. This can result in a better understanding of needs
interacts with the systems analyst and develops models and
and desired solutions.
prototypes that represent all system processes, outputs, and
inputs. RAD groups or subgroups typically use a combination In addition to the system development method using the
of JAD techniques and CASE tools to translate user Rapid Application Development (RAD) method, this study
requirements into a working model. User design is an also uses Unified Modeling Language (UML) Diagrams as a
interactive and continuous process that allows users to tool in the analysis process and also in system design.
understand, modify, and ultimately agree on a system working IV. RESULT AND DISCUSSION
model that meets their needs.
3) Construction: The construction phase focuses on the A. Business Process Analysis
tasks of developing programs and applications that are similar Based on the results of the data collection stages, the
to the SDLC. However, in RAD, users continue to participate business processes in this research activity can be seen in the
and can still suggest changes or improvements as the actual flowmap in Fig. 6 to Fig. 9 below:
screen or report is developed.
412 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 14, No. 10, 2023
413 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 14, No. 10, 2023
Business
No Currently Expected
Process
Manual parking process,
Automatic process where
to do parking, the user
Parking the previous parking process
1 must be in the parking lot
Process can make a booking to get a
to press the ticket button
parking ticket.
and then park.
The expected parking ticket
Parking Parking tickets currently at this time is in addition to
2
Ticket still use paper a lot. reducing paper in the form
of a QR Code.
Fig. 10. Use case diagram. Fig. 12. Menu structure design.
2) Class diagram: The use of this class diagram will E. Interface Implementation
describe the structure in terms of defining the classes that will Implementation of the interface of this system can be seen
be created to build the system. Classes have what are called from the description of the following points:
attributes and methods or operations [11]. Class Diagram can
be seen in Fig. 11. 1) Maps page: Maps page that is displayed when the
application is accessed, and the user has logged in. The display
of this map page can be seen in Fig. 13.
414 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 14, No. 10, 2023
3) Parking information page: The parking information Fig. 17. Booking information page preview.
page is the page after we select a location for parking which is
displayed when the application is accessed. The display of this 6) QR code page: The QR Code Page is intended to get
main page can be seen in Fig. 15. parking access as a substitute for parking tickets. The display
of this main page can be seen in Fig. 18.
Fig. 15. Parking information page display. Fig. 18. QR code page preivew.
415 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 14, No. 10, 2023
7) QR code page: QR Code Scan Result is the result when b) Scalability: The REST API allows the system to
the QR Code is scanned to get parking access. The display of easily scale to changing demands. It can handle traffic spikes
these results can be seen in Fig. 19. that occur during peak hours or during special events.
c) Interoperability: REST APIs typically use common
data formats such as JSON, which can be easily understood by
various devices and platforms. This allows various third-party
applications to integrate with the ticket booking system.
d) Security: REST APIs can be configured to implement
security measures such as authentication, authorization, and
data encryption to protect user information and payment
transactions.
e) R codes: Using QR codes simplifies the check-in
process on public transportation. Users simply display their
QR code on their phone screen, and officers can quickly scan
Fig. 19. QR code scan result.
it to validate the ticket.
When discussing API transfer for QR-Code reading mode 2) Weakness:
and measuring delay (response time in milliseconds), keep in a) Dependency on Internet Connection: REST API
mind that this delay can be influenced by various factors, requires a stable internet connection. If users are in an area
including the quality of the hardware and software used,
with a weak signal or no internet connection, they may not be
environmental conditions, and the quality of the QR code itself.
able to book tickets or display their QR code.
Below is Table II that includes several situations that may
affect QR-Code reading delay: b) Technical Errors: In the event of technical glitches or
server failure, users may experience difficulty booking tickets
TABLE II. FACTORS THAT HINDER THE TRANSFER OF QR CODE DATA or using QR codes. This can disrupt the user experience.
USING THE REST API
c) Data Security: Although REST APIs can be
No Factor / Issue
Estimated
Description regulated with security measures, the risk of data leakage
Delay (ms) remains. Users' personal data and payment information must
Environmental Low light, glare, or shadows can
1
Conditions
10-100
slow down QR code reading. be guarded very strictly.
QR Code
Damaged or non-standard QR d) Development Cost: Developing and maintaining a
2 5-50 codes may require extra time for robust and reliable REST API can require a large investment
Quality
decryption.
The quality of the camera on
in terms of human and financial resources.
Camera
3
Hardware
20-100 mobile devices or QR code e) Need for Continuous Maintenance: APIs need to be
readers can affect response time. maintained and updated regularly to maintain their reliability.
The performance of QR code
Software reader software may vary based
This requires additional effort and costs.
4 10-50 f) Regulatory Compliance: Online ticket booking
Application on the implementation and
updates. systems must comply with various regulations, including data
Faster mobile device or QR code privacy and financial regulations, which can add complexity
5 Processor Speed 5-20 reader processors will read QR
codes more quickly. and operational costs.
If QR codes need to be fetched
Network from a server over a network,
Implementing REST APIs in online ticket ordering using
6 20-100 QR codes on mobile devices can provide many benefits, but
Overhead network overhead can impact
delay. also has several challenges that must be overcome to achieve
success in managing public transportation in a smart city
The values in this table are general estimates and may vary ecosystem.
depending on the actual circumstances. Some cases may
experience higher or lower delays depending on the V. CONCLUSION
combination of these factors. Additionally, more advanced
The conclusions obtained from the activities that have been
hardware and software may experience lower delays.
carried out include the existence of an online process that can
Implementing REST APIs for online ticket booking using QR
facilitate the process of getting information about the place
codes on mobile devices can have various advantages and
without having to look directly at the parking lot, making it
disadvantages. Here are some of them:
easier for users to book a parking space. This activity can also
1) Excess: anticipate problems in the vehicle parking process such as
running out of parking tickets, jammed ticket machines that
a) Ease of Access and Use: The REST API allows users create long queues. With QR Code media as a substitute for
to easily access the ticket booking system using their mobile parking tickets, it will save paper usage which is usually
devices. This provides convenience for users in ordering always thrown away after use, so this QR Code is one of the
public transportation tickets. media used can replace paper tickets. Implementing the REST
API in online ticket ordering using a QR code on a mobile
416 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 14, No. 10, 2023
device is one of the best solutions for managing public [6] S. Hanief, and D. Pramana, “Pengembangan Bisnis Pariwisata Dengan
transportation in the smart city ecosystem. Media Sistem Informasi,” 2018.
[7] Herlinah, and K. H. Musliadi, “Pemrograman Aplikasi Android dengan
REFERENCES Android Studio, Photoshop dan Audition, No. 1, pp. 2-5, 2019.
[8] Denso Wave Corporation, “QR Code Essentials,” 2011.
[1] Parmar, J., Das, P., & Dave, S. M. (2020). Study on demand and
characteristics of parking system in urban areas: A review. Journal of [9] A. S. Rosa, and M. Shalahuddin, “Rekayasa Perangkat Lunak Dan
Traffic and Transportation Engineering (English Edition), 7(1), 111-124. Berorientasi Objek,” 2016.
[2] Calderdale Council. (2023). Mitigating Circumstances For Appealing [10] Sitorus, L., Situmorang, J. V. M., Limbong, T., Matondang, Z. A., &
Against A Ticket, https://new.calderdale.gov.uk/parking/challenging- Rikki, A. (2023, July). Development of quality assurance information
parking-ticket/mitigating-circumstances, Accessed October 21, 2023 systems at the faculty of Computer Sciences, Santo Thomas Catholic
University with rapid application development (RAD) model. In AIP
[3] A. F. Harismawan, A. P. Kharisma, and T. Afrianto, “Analisis
Conference Proceedings (Vol. 2798, No. 1). AIP Publishing.
Perbandingan Performa Web Service Menggunakan Bahasa
Pemrograman Python, PHP, dan Perl pada Client Berbasis Android,” [11] G. B. Shelly, T. J. Cashman, and H. J. Rosenblatt, “System Analysis and
Jurnal Pengembanagan Teknologi Informasi dan Ilmu Komputer, vol. 2, Design,” 7th ed, Course Technology, 2008.
no. 1, 2018. [12] I. Abubakar, “Pedoman Perencanaan Dan Pengoperasian Fasilitas
[4] D. L. Puspa, I. Uce, and H. S. Yulius, “Permodelan Proses Bisnis Parkir,” 1998.
menggunakan Activity Diagram UML dan BPMN,” Universitas Kristen [13] M. Masse, “REST API Design Rulebook,” 2011.
Petra, 2009. [14] V. Brossier, “Developing Android Applications with Adobe Air,” 2011.
[5] A. Mayasari, “A. Sistem Reservation dan Ticketing PT. Sriwijaya Air
Distrik Solo,” Universitas Sebelas Maret Surakarta, 2011.
417 | P a g e
www.ijacsa.thesai.org
© 2023. This work is licensed under
http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding
the ProQuest Terms and Conditions, you may use this content in accordance
with the terms of the License.