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
+48
View File
@@ -196,6 +196,54 @@
}
}
},
"/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": {}
}
}
}
},
"/uploads/single/{folder}": {
"post": {
"tags": [
+2
View File
@@ -4,6 +4,7 @@ import upload from "./upload.js";
import user from "./user.js";
import profile from "./profile.js";
import admin from "./admin.js";
import location from "./location.js"
const GENERAL_CONFIG = {
openapi: "3.0.1",
@@ -43,6 +44,7 @@ const GENERAL_CONFIG = {
let paths = {
...user,
...profile,
...location,
...upload,
...admin,
};
+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: {},
},
},
},
},
};