API - Menghapus Spatial Map
API ini digunakan untuk menghapus permanen data Spatial Map tertentu berdasarkan mapId.
1. Informasi dasar API
- Endpoint API:
https://armap-api-<cn1,na1>.easyar.com/map/{mapId} - Metode request:
DELETE - Format response:
*/*(biasanyaapplication/json)
2. Authentication
API ini mendukung dua mode authentication berikut:
- Authentication berbasis Token:
- Header:
Authorization: [token] - Parameter: harus menyertakan
appId.
- Header:
- Authentication berbasis Signature:
- Parameter: harus menyertakan
appId,apiKey,timestamp, dansignature. - Untuk algoritme detail perhitungan signature, lihat metode signature API Key.
- Parameter: harus menyertakan
3. Parameter request
3.1 Path parameters
| Nama parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
| mapId | String | Ya | Identifier unik spatial map (MapId). |
4. Struktur data response (ARMapDTO)
Ketika request berhasil (statusCode bernilai 0), result yang dikembalikan berisi informasi snapshot map yang dihapus.
| Nama field | Tipe | Deskripsi |
|---|---|---|
| mapId | String | Identifier unik map. |
| name | String | Nama map. |
| status | String | Status map saat ini. |
| size | Integer (int64) | Ukuran file map. |
| meta | String | Metadata kustom. |
| previewUrl | String | Link download preview image. |
| emeUrl | String | Link resource EME. |
| md5 | String | Checksum MD5 file. |
| created | DateTime | Waktu pembuatan. |
| modified | DateTime | Waktu modifikasi terakhir. |
5. Status code
| Http Code | Arti | Deskripsi |
|---|---|---|
| 200 | OK | Request berhasil, mengembalikan objek map yang dihapus. |
| 401 | Unauthorized | Authentication gagal, periksa Token atau signature. |
| 403 | Forbidden | Tidak memiliki izin untuk mengakses resource ini. |
Error code Status Code
6. Contoh response (JSON)
{
"statusCode": 0,
"msg": "success",
"timestamp": "2026-01-30T10:00:00Z",
"result": {
"mapId": "string",
"name": "example_map",
"status": "inactive",
"size": 1024
}
}