I have written a POST method for the input of 2 integers lon
and lat
. How can I calculate the sum of lon and lat and return it?
openapi: 3.0.0
info:
version: '1.0.0'
title: ''
description: ''
paths:
/coordinates:
post:
responses:
'201':
description: Created
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
lon:
type: number
format: double
lat:
type: number
format: double