location update optimized with schema changes and geoJson Compatability testing endpoint with encrypted key authorization
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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: {},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user