National Addressing System

Ministry of Housing and Urban Planning in the Sultanate of Oman

User Tools

Site Tools


reference:system-architecture:address-editing-and-query-api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
reference:system-architecture:address-editing-and-query-api [2025/08/26 21:40] – [5 API methods specification] runarbereference:system-architecture:address-editing-and-query-api [2025/08/27 06:33] (current) runarbe
Line 1: Line 1:
-====== NAS Address Editing and Query API Specification ======+====== Address Editing and Query API ====== 
 + 
 +This API provides methods to interact with the core addressing data model such as creating, reading, updating and deleting address objects as well as querying them and keeping them in sync with application data and external copies/cached data.
  
 ===== 1. Integration with Third-Party GIS Platforms ===== ===== 1. Integration with Third-Party GIS Platforms =====
Line 15: Line 17:
   * Python: Known as the universal language for data scientists, Python integrates smoothly with GIS platforms. ArcGIS utilises Python for analytics and extensions, making it a preferred choice for GIS programmers. Its use within the Microsoft platform further encourages its adoption.   * Python: Known as the universal language for data scientists, Python integrates smoothly with GIS platforms. ArcGIS utilises Python for analytics and extensions, making it a preferred choice for GIS programmers. Its use within the Microsoft platform further encourages its adoption.
  
-==== 4. Technical requirements ====+===== 3. Technical requirements =====
  
 From the outset, the technical approach involves utilising: From the outset, the technical approach involves utilising:
Line 22: Line 24:
   * Python >= 3.12: The latest iteration of the Python programming language.   * Python >= 3.12: The latest iteration of the Python programming language.
   * Containerization using Docker: The leading technology for containerization of server applications   * Containerization using Docker: The leading technology for containerization of server applications
- +  * Linux operating system: A robust and proven platform for hosting services.
-Linux operating system: A robust and proven platform for hosting services.+
  
 This structure aims to enhance the National Addressing System's functionality, supporting accurate and efficient data management and integration across various platforms. This structure aims to enhance the National Addressing System's functionality, supporting accurate and efficient data management and integration across various platforms.
  
-==== 4.1 RESTful API ==== +==== 3.1 Performance Management, Rate Limiting, Caching, and Developer Enablement ====
- +
-Types of actions in a REST API +
- +
-  * HttpGet: This method is used to retrieve and query records from the database. +
-  * HttpPut: This function updates existing records. +
-  * HttpPost: Utilised for creating new entries in the database. +
-  * HttpDelete: This method deletes records currently stored. +
- +
-For each data type, a unique controller oversees these actions, ensuring a structured and coherent data handling process. The API is designed to be user-friendly, adhere to industry standards, and is thoroughly documented +
- +
-==== 4.2 Performance Management, Rate Limiting, Caching, and Developer Enablement ====+
  
 To ensure reliable, scalable, and fair access to the NAS API ecosystem—particularly as integrations expand to include both public and private third-party systems—the platform should adopt additional operational controls and developer support mechanisms: To ensure reliable, scalable, and fair access to the NAS API ecosystem—particularly as integrations expand to include both public and private third-party systems—the platform should adopt additional operational controls and developer support mechanisms:
  
-==== 4.3 Rate Limiting and Caching ====+==== 3.2 Rate Limiting and Caching ====
  
 The NAS API layer will benefit from the implementation of rate limiting to prevent abuse, ensure equitable resource allocation, and protect backend systems from overload during periods of high demand. Rate limiting policies will be clearly defined in API documentation and enforced per API client or token, with the flexibility to grant higher limits to critical government and infrastructure partners. The NAS API layer will benefit from the implementation of rate limiting to prevent abuse, ensure equitable resource allocation, and protect backend systems from overload during periods of high demand. Rate limiting policies will be clearly defined in API documentation and enforced per API client or token, with the flexibility to grant higher limits to critical government and infrastructure partners.
Line 48: Line 38:
 Complementing rate limiting, API-level caching mechanisms (e.g., in-memory caches, reverse proxies, or CDN-based edge caching) will be deployed to accelerate the most frequently accessed data and reduce repeated queries to the primary database. Caching strategies will be tailored according to data volatility and use-case, balancing data freshness against system responsiveness. Complementing rate limiting, API-level caching mechanisms (e.g., in-memory caches, reverse proxies, or CDN-based edge caching) will be deployed to accelerate the most frequently accessed data and reduce repeated queries to the primary database. Caching strategies will be tailored according to data volatility and use-case, balancing data freshness against system responsiveness.
  
-==== 4.Service Level Agreements (SLAs) for Integrations ====+==== 3.Service Level Agreements (SLAs) for Integrations ====
  
 For all external integrations, especially those with business-critical third-party systems, formal Service Level Agreements (SLAs) will be established. SLAs will define key parameters such as guaranteed uptime, target response times, maintenance notification windows, and escalation procedures for incidents. This transparency fosters trust among stakeholders and ensure predictable quality of service for mission-critical operations. For all external integrations, especially those with business-critical third-party systems, formal Service Level Agreements (SLAs) will be established. SLAs will define key parameters such as guaranteed uptime, target response times, maintenance notification windows, and escalation procedures for incidents. This transparency fosters trust among stakeholders and ensure predictable quality of service for mission-critical operations.
  
-==== 4.Performance Benchmarks and Scalability Thresholds ====+==== 3.Performance Benchmarks and Scalability Thresholds ====
  
 To guide system sizing and support future growth, the NAS API and underlying infrastructure will be subject to regular performance benchmarking. Metrics such as average and 95th percentile response times, throughput under load, and maximum supported concurrent connections will be documented. Scalability thresholds (e.g., API requests per minute, data volume limits, user concurrency) will be specified and reviewed as usage patterns evolve. To guide system sizing and support future growth, the NAS API and underlying infrastructure will be subject to regular performance benchmarking. Metrics such as average and 95th percentile response times, throughput under load, and maximum supported concurrent connections will be documented. Scalability thresholds (e.g., API requests per minute, data volume limits, user concurrency) will be specified and reviewed as usage patterns evolve.
  
-==== 4.Sandbox Environments for Integration Testing ====+==== 3.Sandbox Environments for Integration Testing ====
  
 To facilitate secure and efficient onboarding of new integrators, a sandbox environment—mirroring the production API but operating on test data—will be provided to registered developers. This environment enables third parties to prototype and validate their integrations without risk to production data or services. Comprehensive API documentation, test credentials, and sample data will be made available within the sandbox to accelerate development and troubleshooting. To facilitate secure and efficient onboarding of new integrators, a sandbox environment—mirroring the production API but operating on test data—will be provided to registered developers. This environment enables third parties to prototype and validate their integrations without risk to production data or services. Comprehensive API documentation, test credentials, and sample data will be made available within the sandbox to accelerate development and troubleshooting.
  
-===== API methods specification =====+===== 4 Required API methods =====
  
 The API must as minimum implement the following methods. Authentication is exempt but implicitly required for acceptable system operations. The API must as minimum implement the following methods. Authentication is exempt but implicitly required for acceptable system operations.
reference/system-architecture/address-editing-and-query-api.1756244458.txt.gz · Last modified: by runarbe