Contents
1. Network Optix Announces Its Acquisition of Scailable BV2023 proved to be an exceptional year for Network Optix and the Oceania team. From securing a spot on the Inc. 5000 Fastest Growing Companies in America list for the seventh consecutive year to hosting the largest show to date organized by Nx at ASIAL 2023, it's been quite a journey. Let's delve into the highlights that made 2023 truly unforgettable:
Experience heightened security efficiency with the seamless integration of Gallagher and Nx Witness VMS, allowing for effortless streaming of live video from Nx Witness to Gallagher Command Centre. This integration simplifies control, offering customizable camera tiles, quick response to motion or event-triggered alarms, and seamless access to stored video. Using the combined solution, operators can capture frames in stunning 4K resolution, adjust camera settings, and seamlessly toggle between live and stored footage.
In software development, engineers commonly encounter the terms CRUD, also known as Create, Read, Update, and Delete, and REST or REST API, also known as Representational State Transfer Application Programming Interface. Developing a comprehensive understanding of these concepts and their respective benefits is essential for proficiently developing web applications or leveraging web APIs. This article aims to provide insights into CRUD and REST, using Nx Witness's latest API as an illustrative example of RESTful transformation.
CRUD is an acronym that stands for Create, Read, Update, and Delete. It represents the four essential functions to implement a persistent storage application. Here is a brief explanation of each operation:
REST is an architectural style rather than a standard or protocol. REST stands for Representational State Transfer Application Programming Interface. This may not be a familiar topic for you, so let us delve deeper into what it is, what it is used for, and what you can do with it. REST APIs are almost always accessed over HTTP or HTTPS. This gives REST one of its greatest strengths – it is ubiquitous. It is one of the standards that drives the Internet. As a result, it is a technology that is understood and utilized by most developers.
Another one of REST API’s greatest strengths is simplicity. Existing integration tools like SOAP, XML-RPC, and others were very flexible and powerful but harder to work with because they weren’t supported in browsers.
Primarily, HTTP-based RESTful APIs are characterized by the following components:
RESTful APIs are web service APIs that adhere to REST constraints. These constraints dictate the methods a server can employ to process and respond to client requests. They were devised to ensure that software developed with a REST architecture exhibits good performance, scalability, simplicity, malleability, portability, and reliability.
The earlier information in this article aimed to give you a basic understanding of REST and CRUD. To recap, CRUD represents four basic operations related to persistent storage or databases, while REST is an architectural style rather than a standard or protocol.
In the realm of web development, developers typically adhere to REST principles when designing API architectures to accomplish CRUD operations on databases. However, it's crucial to note that REST APIs are not confined to CRUD operations exclusively. They extend beyond these fundamentals, enabling clients to execute a diverse array of operations, including tasks like initiating a server reboot or creating a database backup.
To enhance maintainability, several refinements have been implemented in the APIs since the release of Nx Witness v5.0:
These improvements enable developers to comprehend the functions and behaviors of a specific API more clearly. Let’s explore the following examples:
CRUD operations |
HTTP Method |
RESTful endpoint |
Purpose |
Create |
POST |
/rest/v2/users |
Create a user |
Read |
GET |
/rest/v2/users |
Get all users |
Update |
PUT |
/rest/v2/users/{id} |
Replace all info for the specific user |
Update |
PATCH |
/rest/v2/users/{id} |
Update partial info for the specific user |
Delete |
DELETE |
/rest/v2/users/{id} |
Remove the specific user |
Nx Witness Version v5.0 introduced significant enhancements to its REST API, aligning with a commitment to continual improvement. The adoption of lowercase RESTful endpoints, resource-specific operations, and version information contributes to a more user-friendly experience for our partners. For further details on optimizing API usage or any inquiries, contact support@networkoptix.com.