Skip to content

Commit

Permalink
Next (#39)
Browse files Browse the repository at this point in the history
* fix all file for checker standards

* modify all file checker standards
  • Loading branch information
ldoneda authored Aug 4, 2023
1 parent 8642201 commit 4f0014d
Show file tree
Hide file tree
Showing 9 changed files with 679 additions and 26 deletions.
81 changes: 75 additions & 6 deletions IFS01_Offerta-formativa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,31 @@ info:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
paths:
/offerta-formativa/{aa}:

/offerta-formativa/{aa}:
get:
summary: Offerta formativa di un'Università/AFAM pubblica
tags:
- offerta formativa
security: [{}]
parameters:
- schema:
type: string
maxLength: 100
minLength: 0
in: query
name: courseType
description: Tipologia del corso di studio
- schema:
type: string
maxLength: 5
minLength: 1
in: query
name: classCode
description: Codice identificativo della classe di laurea
- schema:
type: string
maxLength: 10
minLength: 1
in: query
name: faculty
description: Facoltà
Expand All @@ -43,6 +49,7 @@ paths:
format: int32
default: 1
minimum: 1
maximum: 1000000
in: query
name: page
description: Numero della pagina che si vuole visualizzare
Expand All @@ -52,6 +59,7 @@ paths:
format: int32
default: 15
minimum: 1
maximum: 1000000
in: query
name: limit
description: Numero massimo di elementi per pagina
Expand All @@ -62,7 +70,8 @@ paths:
content:
application/json:
schema:
type: object
type: object
additionalProperties: false
x-examples:
Example 1:
totElem: 150
Expand Down Expand Up @@ -103,21 +112,29 @@ paths:
description: totale degli elementi disponibili
format: int32
readOnly: true
minimum: 0
maximum: 1000000
totPages:
type: integer
description: totale delle pagine disponibili
format: int32
readOnly: true
minimum: 0
maximum: 1000000
currentPage:
type: integer
description: numero della pagina corrente restituita
format: int32
readOnly: true
minimum: 0
maximum: 1000000
perPage:
type: integer
description: numero di elementi presenti nella pagina
format: int32
readOnly: true
minimum: 0
maximum: 1000000
data:
$ref: '#/components/schemas/OffertaFormativa'
required:
Expand Down Expand Up @@ -147,7 +164,7 @@ paths:
faculty: Ingegneria
courseType: Corso di laurea magistrale
courseName: Ingegneria Informatica
classCode: LM-32
classCode: L-32
className: Intelligenza artificiale
- _id: 1754e9c6bda01080001ad678
faculty: Economia
Expand All @@ -171,6 +188,8 @@ paths:
type: string
example: 2022-2023
pattern: ^\d{4}-\d{4}$
maxLength: 9
minLength: 9
name: aa
in: path
required: true
Expand All @@ -182,14 +201,47 @@ paths:
description: Verificare lo stato di salute del sistema
tags:
- health-check
security: [{}]
responses:
'204':
description: il servizio è in esecuzione correttamente.
'500':
description: il servizio non è in esecuzione.
components:
headers:
Retry-After:
description: |-
Retry contacting the endpoint *at least* after seconds.
See https://tools.ietf.org/html/rfc7231#section-7.1.3
schema:
format: int32
maximum: 186400
minimum: 0
type: integer
X-RateLimit-Limit:
description: The number of allowed requests in the current period
schema:
format: int32
maximum: 1000000
minimum: 0
type: integer
X-RateLimit-Remaining:
description: The number of remaining requests in the current period
schema:
format: int32
maximum: 1000000
minimum: 0
type: integer
X-RateLimit-Reset:
description: The number of seconds left in the current period
schema:
format: int32
maximum: 186400
minimum: 0
type: integer
schemas:
OffertaFormativa:
additionalProperties: false
type: object
x-examples:
Example 1:
Expand Down Expand Up @@ -228,12 +280,18 @@ components:
type: string
description: Codice identificativo dell’istituto
readOnly: true
minLength: 0
maxLength: 10
instituteName:
type: string
description: Nome dell'istituto
readOnly: true
minLength: 1
maxLength: 256
courses:
type: array
maxItems: 100
minItems: 0
description: Elenco corsi erogati
items:
$ref: '#/components/schemas/Corso'
Expand All @@ -242,6 +300,7 @@ components:
- instituteName
- courses
Corso:
additionalProperties: false
title: Corso
x-stoplight:
id: jc5yohovopcsd
Expand All @@ -260,31 +319,42 @@ components:
type: string
description: id del corso erogato dall'Università/AFAM pubblica
readOnly: true
maxLength: 100
faculty:
type: string
description: Nome della facoltà
readOnly: true
minLength: 1
maxLength: 256
courseType:
type: string
description: Tipo di corso di studio
example: laurea, laurea magistrale, dottorato di ricerca, specializzazione, master, formazione professionale
readOnly: true
minLength: 1
maxLength: 256
courseName:
type: string
description: Denominazione del corso di studio
example: ingegneria, economia, giurisprudenza, medicina, scienze umanistiche, scienze sociali, informatica, arte e design
readOnly: true
minLength: 1
maxLength: 256
classCode:
type: string
description: Codice della classe di studio
pattern: ^[A-Z]+-\d{1,2}$
example: L-8
readOnly: true
minLength: 1
maxLength: 5
className:
type: string
description: Denominazione della classe di studio
example: Informatica, Meccanica, Elettronica, Civile
readOnly: true
minLength: 0
maxLength: 256
required:
- _id
- faculty
Expand All @@ -299,5 +369,4 @@ servers:
description: localhost
tags:
- name: offerta formativa
- name: health-check

- name: health-check
Loading

0 comments on commit 4f0014d

Please sign in to comment.