mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
rdv:add swagger config file for calendar bundle
This commit is contained in:
parent
de8478f3e5
commit
223efba655
81
src/Bundle/ChillCalendarBundle/chill.api.specs.yaml
Normal file
81
src/Bundle/ChillCalendarBundle/chill.api.specs.yaml
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
---
|
||||||
|
openapi: "3.0.0"
|
||||||
|
info:
|
||||||
|
version: "1.0.0"
|
||||||
|
title: "Chill api"
|
||||||
|
description: "Api documentation for chill. Currently, work in progress"
|
||||||
|
servers:
|
||||||
|
- url: "/api"
|
||||||
|
description: "Your current dev server"
|
||||||
|
|
||||||
|
paths:
|
||||||
|
/1.0/calendar/calendar.json:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- calendar
|
||||||
|
summary: Return a list of all calendar items
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "ok"
|
||||||
|
|
||||||
|
/1.0/calendar/calendar/{id}.json:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- calendar
|
||||||
|
summary: Return an calendar item by id
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The calendar id
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
format: integer
|
||||||
|
minimum: 1
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "ok"
|
||||||
|
404:
|
||||||
|
description: "not found"
|
||||||
|
401:
|
||||||
|
description: "Unauthorized"
|
||||||
|
|
||||||
|
/1.0/calendar/calendar-range.json:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- calendar
|
||||||
|
summary: Return a list of all calendar range items
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "ok"
|
||||||
|
|
||||||
|
/1.0/calendar/calendar-range/{id}.json:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- calendar
|
||||||
|
summary: Return an calendar-range item by id
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The calendar-range id
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
format: integer
|
||||||
|
minimum: 1
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "ok"
|
||||||
|
404:
|
||||||
|
description: "not found"
|
||||||
|
401:
|
||||||
|
description: "Unauthorized"
|
||||||
|
|
||||||
|
/1.0/calendar/calendar-range-available.json:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- calendar
|
||||||
|
summary: Return a list of available calendar range items. Available means calendar-range not being taken by a calendar entity
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "ok"
|
Loading…
x
Reference in New Issue
Block a user