You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
4 years ago
|
openapi: 3.0.0
|
||
|
info:
|
||
|
title: Mieux Voter
|
||
4 years ago
|
description: A poll application based on Majority Judgment (MJ).
|
||
4 years ago
|
version: 1.0.1-oas3
|
||
|
termsOfService: 'https://github.com/MieuxVoter'
|
||
|
contact:
|
||
4 years ago
|
name: Mieux Voter app developpers team
|
||
4 years ago
|
email: app@mieuxvoter.fr
|
||
|
servers:
|
||
|
- url: 'https://api.mieuxvoter.fr/v1'
|
||
|
description: Main (production) server
|
||
|
- url: 'https://sandboxapi.mieuxvoter.fr/v1'
|
||
|
description: Internal staging server for testing
|
||
|
paths:
|
||
|
/polls:
|
||
|
$ref: paths/polls.yaml
|
||
|
'/polls/{poll-id}':
|
||
|
$ref: 'paths/polls@{poll-id}.yaml'
|
||
|
'/polls/{poll-id}/judges':
|
||
|
$ref: 'paths/polls@{poll-id}@judges.yaml'
|
||
|
'/polls/{poll-id}/results':
|
||
|
$ref: 'paths/polls@{poll-id}@results.yaml'
|
||
|
'/polls/{poll-id}/judgments':
|
||
|
$ref: 'paths/polls@{poll-id}@judgments.yaml'
|
||
|
'/judgments/{judgment-id}':
|
||
|
$ref: 'paths/judgments@{judgment-id}.yaml'
|
||
|
'/polls/{poll-id}/judges/{judge-id}/':
|
||
|
$ref: 'paths/polls@{poll-id}@judges@{judge-id}@.yaml'
|
||
|
components:
|
||
|
securitySchemes:
|
||
|
judgeAuth:
|
||
|
type: http
|
||
|
scheme: bearer
|
||
|
pollAuth:
|
||
|
type: http
|
||
|
scheme: bearer
|
||
|
resultAuth:
|
||
|
type: http
|
||
|
scheme: bearer
|