vue_activity location: add NewLocation fields, submit activity form with hidden field (+)

This commit is contained in:
2021-10-15 09:09:47 +02:00
parent 4d4662a634
commit e6845326d7
9 changed files with 175 additions and 11 deletions

View File

@@ -548,6 +548,48 @@ paths:
description: "ok"
401:
description: "Unauthorized"
post:
tags:
- location
summary: create a new location
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
type:
type: string
name:
type: string
phonenumber1:
type: string
phonenumber2:
type: string
email:
type: string
address:
type: object
properties:
id:
type: integer
locationtype:
type: object
properties:
id:
type: integer
responses:
401:
description: "Unauthorized"
404:
description: "Not found"
200:
description: "OK"
422:
description: "Unprocessable entity (validation errors)"
400:
description: "transition cannot be applyed"
/1.0/main/location-type.json:
get: