mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 23:53:50 +00:00
[WIP] Add postal code search endpoint and controller integration
Introduced a new API endpoint `/api/1.0/main/address-reference/postal-code/search` for searching postal codes matching a query string. Implemented `PostalCodeForAddressReferenceApiController` to handle requests and integrated with `PostalCodeForAddressReferenceRepository`. Enhanced repository to include `country_name` in results by decoding JSON data. Updated API specifications accordingly.
This commit is contained in:
@@ -614,6 +614,25 @@ paths:
|
||||
description: "Unauthorized"
|
||||
400:
|
||||
description: "Bad Request"
|
||||
/1.0/main/address-reference/postal-code/search:
|
||||
get:
|
||||
tags:
|
||||
- address
|
||||
summary: Search for postal code that can contains the search query
|
||||
parameters:
|
||||
- name: q
|
||||
in: query
|
||||
required: true
|
||||
description: The search pattern
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: "ok"
|
||||
401:
|
||||
description: "Unauthorized"
|
||||
400:
|
||||
description: "Bad Request"
|
||||
/1.0/main/postal-code/search.json:
|
||||
get:
|
||||
tags:
|
||||
|
Reference in New Issue
Block a user