location update optimized with schema changes and geoJson Compatability testing endpoint with encrypted key authorization

This commit is contained in:
Shibi Chakkaravarthy
2026-04-17 14:15:11 +05:30
parent b44abf9c88
commit 92769cfd38
19 changed files with 459 additions and 27 deletions
+49
View File
@@ -0,0 +1,49 @@
export default {
"/location/create": {
post: {
tags: ["Location"],
summary: "Create New Location",
parameters: [
{
in: "query",
name: "key",
required: true,
schema: {
type: "string",
},
},
],
requestBody: {
required: true,
content: {
"application/json": {
schema: {
type: "object",
properties: {
name: {
type: "string",
required: true,
},
coordinates: {
type: "array",
required: true,
},
venue: {
type: "string",
required: false,
},
},
},
},
},
},
responses: {
200: {
description: "OK",
content: {},
},
},
},
},
};