Skip to content

Commit

Permalink
Merge pull request #47 from secultce/feature/event-docs-find
Browse files Browse the repository at this point in the history
Add documentacion of events find
  • Loading branch information
saracamilo authored Mar 19, 2024
2 parents 2d7caef + 54f0c1b commit 0440cbc
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 0 deletions.
23 changes: 23 additions & 0 deletions public/docs/components/paths/event/find.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
get:
tags:
- Eventos
summary: Recupera a lista de eventos
description: Recupera a lista de eventos
parameters:
- $ref: '../../parameters/select.yaml'
responses:
'200':
description: Um array com todos os eventos, caso não tenha o parametro @select na busca, ele trará apenas id e @entityType
content:
application/json:
schema:
type: array
items:
allOf:
- $ref: '../../schemas/event.yaml'
- type: object
properties:
'@entityType':
type: string
example: seal
description: Um texto que representa qual a entity é retornada
178 changes: 178 additions & 0 deletions public/docs/components/schemas/event.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
type: object
properties:
id:
type: integer
example: 1
description: Um id numérico que representa o Evento
name:
type: string
example: "evento teste"
description: Um texto que representa o nome do Evento
shortDescription:
type: string
example: "teste de evento"
description: Uma breve descrição do Evento
longDescription:
type: string
nullable: true
description: Uma descrição detalhada do Evento
rules:
type: string
nullable: true
description: Regras do Evento
createTimestamp:
$ref: '../common-types/date.yaml'
status:
type: integer
example: 1
description: Um número que representa o status do Evento
updateTimestamp:
$ref: '../common-types/date.yaml'
owner:
type: integer
example: 1
description: O Agente que criou o Evento
project:
type: string
nullable: true
description: Projeto associado ao Evento
subsite:
type: string
nullable: true
description: Subsite associado ao Evento
currentUserPermissions:
type: object
properties:
'@control':
type: boolean
example: false
create:
type: boolean
example: false
modify:
type: boolean
example: false
unpublish:
type: boolean
example: false
publish:
type: boolean
example: false
view:
type: boolean
example: true
remove:
type: boolean
example: false
_control:
type: boolean
example: false
viewPrivateFiles:
type: boolean
example: false
changeOwner:
type: boolean
example: false
viewPrivateData:
type: boolean
example: false
createAgentRelation:
type: boolean
example: false
createAgentRelationWithControl:
type: boolean
example: false
removeAgentRelation:
type: boolean
example: false
removeAgentRelationWithControl:
type: boolean
example: false
createSealRelation:
type: boolean
example: false
removeSealRelation:
type: boolean
example: false
destroy:
type: boolean
example: false
archive:
type: boolean
example: false
unarchive:
type: boolean
example: false
description: Permissões do usuário atual para o Evento
classificacaoEtaria:
type: string
example: "18 anos"
description: Classificação etária do Evento
occurrences:
type: array
items:
type: string
description: Ocorrências do Evento
relatedOpportunities:
type: array
items:
type: string
description: Oportunidades relacionadas ao Evento
terms:
type: object
properties:
tag:
type: array
items:
type: string
linguagem:
type: array
items:
type: string
example: ["Curso ou Oficina"]
description: Termos associados ao Evento
metalists:
type: array
items:
type: string
description: Metalistas associadas ao Evento
files:
type: array
items:
type: string
description: Arquivos associados ao Evento
seals:
type: array
items:
type: string
description: Selos associados ao Evento
type:
type: object
properties:
id:
type: integer
example: 1
name:
type: string
example: "Padrão"
description: Tipo do Evento
subsiteId:
type: integer
nullable: true
description: ID do subsite associado ao Evento
subTitle:
type: string
nullable: true
description: Subtítulo do Evento
registrationInfo:
type: string
nullable: true
description: Informações de registro do Evento
telefonePublico:
type: string
nullable: true
description: Telefone público do Evento
preco:
type: string
nullable: true
description: Preço do Evento
7 changes: 7 additions & 0 deletions public/docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ tags:
externalDocs:
description: Find out more
url: http://swagger.io
- name: Eventos
description: Rotas relacionadas aos eventos
externalDocs:
description: Find out more
url: http://swagger.io
- name: Oportunidades
description: Everything about your tests
externalDocs:
Expand Down Expand Up @@ -74,6 +79,8 @@ paths:
$ref: './components/paths/space/get-types.yaml'
/api/space/getTypeGroups:
$ref: './components/paths/space/get-type-groups.yaml'
/api/event/find:
$ref: './components/paths/event/find.yaml'
/api/seal/describe:
$ref: './components/paths/seal/describe.yaml'
/api/seal/find:
Expand Down

0 comments on commit 0440cbc

Please sign in to comment.