location update optimized with schema changes and geoJson Compatability testing endpoint with encrypted key authorization
This commit is contained in:
@@ -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