serverest 2.25.2 → 2.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +2 -29
- package/docs/swagger.json +1 -1
- package/package.json +1 -2
- package/src/app.js +1 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.25.3](https://github.com/ServeRest/ServeRest/compare/v2.25.2...v2.25.3) (2022-03-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **agilizei:** fix swagger routes on agilizei.serverest.dev ([19a3a9b](https://github.com/ServeRest/ServeRest/commit/19a3a9bd6afaba2bd98ae74cc9bf29883eb4193f))
|
|
9
|
+
* remove 'performance test' info and /status route ([c675d38](https://github.com/ServeRest/ServeRest/commit/c675d38a12045645c9bd155aaab540afebb8225c))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **docker:** remove specific version that prevents docker build ([1b60df3](https://github.com/ServeRest/ServeRest/commit/1b60df33124a449abfded1bdba22ba9ef5a7aae3))
|
|
15
|
+
* **makefile:** run 'build run' as default to easier execution ([9d10991](https://github.com/ServeRest/ServeRest/commit/9d10991a7e56fa6ba6d80e3428ca1005ae482ac7))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Documentation
|
|
19
|
+
|
|
20
|
+
* remove companys section because they don't support the project ([7293b8b](https://github.com/ServeRest/ServeRest/commit/7293b8b2a28e333adf0ece3ade697e06d184c85b))
|
|
21
|
+
* remove info about 'uptime' page ([1e8b20a](https://github.com/ServeRest/ServeRest/commit/1e8b20adb77c5d6c6b28fe99ba0c340c1f13196e))
|
|
22
|
+
|
|
3
23
|
## [2.25.2](https://github.com/ServeRest/ServeRest/compare/v2.25.1...v2.25.2) (2021-12-08)
|
|
4
24
|
|
|
5
25
|
|
package/README.md
CHANGED
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
|
|
26
26
|
_ServeRest_ permite o estudo de:
|
|
27
27
|
- Verbos *GET, POST, PUT* e *DELETE* com persistência de dados
|
|
28
|
-
- [Teste de carga](https://github.com/ServeRest/ServeRest#teste-de-carga)
|
|
29
28
|
- Autenticação no header
|
|
30
29
|
- Query string
|
|
31
30
|
- Teste de schema json
|
|
31
|
+
- Teste de carga
|
|
32
32
|
|
|
33
33
|
<b><h2 align="center">Ambientes disponíveis</h2></b>
|
|
34
34
|
|
|
@@ -54,7 +54,7 @@ No ambiente online os dados cadastrados são removidos diariamente, enquanto que
|
|
|
54
54
|
|
|
55
55
|
Prefira a opção de ambiente local caso precise que os dados não sejam alterados por outro usuário.
|
|
56
56
|
|
|
57
|
-
### Online
|
|
57
|
+
### Online
|
|
58
58
|
|
|
59
59
|
Acesse **<https://serverest.dev>** para visualizar a documentação e as rotas disponíveis.
|
|
60
60
|
|
|
@@ -127,17 +127,6 @@ Em ambos os comandos de subida de ambiente local será utilizado a última vers
|
|
|
127
127
|
|
|
128
128
|
Você pode encontrar as versões disponíveis na [lista de tags no Docker Hub](https://hub.docker.com/r/paulogoncalvesbh/serverest/tags) e na [lista de versões do NPM](https://www.npmjs.com/package/serverest).
|
|
129
129
|
|
|
130
|
-
## Teste de carga
|
|
131
|
-
|
|
132
|
-
Para acompanhar o comportamento do ambiente aonde o ServeRest está hospedado você pode acessar a página https://serverest.dev/status, pois contém informações como:
|
|
133
|
-
|
|
134
|
-
- Uso de CPU.
|
|
135
|
-
- Uso da memória.
|
|
136
|
-
- Tempo de resposta.
|
|
137
|
-
- RPS (Requisições por segundo).
|
|
138
|
-
|
|
139
|
-
> Fez teste de carga? O que acha de compartilhar com o autor do projeto o relatório final contendo dados de RPS para auxiliar o ServeRest a entender o comportamento de sua infra?
|
|
140
|
-
|
|
141
130
|
## Badge
|
|
142
131
|
|
|
143
132
|
Criou repositório utilizando o ServeRest? Adicione o código abaixo no topo do README.md para ter a badge do projeto.
|
|
@@ -208,19 +197,3 @@ Veja aqui [como você pode contribuir](https://github.com/ServeRest/ServeRest/bl
|
|
|
208
197
|
<!-- prettier-ignore-end -->
|
|
209
198
|
|
|
210
199
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
211
|
-
|
|
212
|
-
## Empresas que utilizam o ServeRest
|
|
213
|
-
|
|
214
|
-
<table>
|
|
215
|
-
<tr>
|
|
216
|
-
<td align="center"><a href="https://www.globo.com/"><img alt="Logo da empresa Globo.com" src="https://user-images.githubusercontent.com/29241659/93280011-0725cd00-f79f-11ea-8eab-b20be4430cc9.png" height="65"></a></td>
|
|
217
|
-
<td align="center"><a href="https://www.totvs.com/"><img alt="Logo da TOTVS" src="https://user-images.githubusercontent.com/29241659/93278632-9fba4e00-f79b-11ea-88a0-076745447848.png" height="110"></a></td>
|
|
218
|
-
<td align="center"><a href="https://www.noesis.pt/"><img alt="Logo da Noesis" src="https://user-images.githubusercontent.com/29241659/93278486-30dcf500-f79b-11ea-82da-16fb562df247.png" height="60"></a></td>
|
|
219
|
-
<td align="center"><a href="https://www.accenture.com/br-pt"><img alt="Logo da Accenture" src="https://user-images.githubusercontent.com/29241659/101431722-32bfdb80-38e6-11eb-93cb-454f6a64f328.png" height="90"></a></td>
|
|
220
|
-
</tr>
|
|
221
|
-
<tr>
|
|
222
|
-
<td align="center"><a href="https://www.betrybe.com/"><img alt="Logo da empresa Trybe" src="https://user-images.githubusercontent.com/29241659/105440034-ac1c4f00-5c44-11eb-9e3c-ca0986f2805d.png" height="110"></a></td>
|
|
223
|
-
<td align="center"><a href="https://www.ailos.coop.br/"><img alt="Logo da Ailos" src="https://user-images.githubusercontent.com/29241659/105440252-03baba80-5c45-11eb-9b04-46ab9504ea95.png" height="75"></a></td>
|
|
224
|
-
<td align="center"><a href="https://animaeducacao.com.br/"><img alt="Logo da Ânima Educação" src="https://user-images.githubusercontent.com/29241659/105440349-32389580-5c45-11eb-9a9c-bf3758ba6d2e.png" height="110"></a></td>
|
|
225
|
-
</tr>
|
|
226
|
-
</table>
|
package/docs/swagger.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"swagger": "2.0",
|
|
3
3
|
"info": {
|
|
4
|
-
"description": "**O ServeRest é uma API REST que simula uma loja virtual com intuito de servir de material de estudos de testes de API.**\n\n_**Deixe um star no repositorio: [github.com/ServeRest/ServeRest](https://github.com/ServeRest/ServeRest).**_\n\
|
|
4
|
+
"description": "**O ServeRest é uma API REST que simula uma loja virtual com intuito de servir de material de estudos de testes de API.**\n\n_**Deixe um star no repositorio: [github.com/ServeRest/ServeRest](https://github.com/ServeRest/ServeRest).**_\n\nEssa página documenta todas as rotas e como acessá-las. Para mais detalhes do ServeRest (como executar localmente utilizando Docker ou NPM, alterar timeout de autenticação, etc) acesse [o repositório do ServeRest](https://github.com/serverest/serverest).\n\n\nMuito obrigado ♥ a todos que apoiam o projeto [financeiramente](https://opencollective.com/serverest#section-contributors) ou [com código, ideias e divulgação](https://github.com/ServeRest/ServeRest#contribuidores-).\n\nO ServeRest possui um front, com status em beta, não deixe de conhecer: [front.serverest.dev](https://front.serverest.dev).\n\nPrecisa de apoio? [Abra uma issue](https://github.com/ServeRest/ServeRest/issues) ou contate o mantenedor do projeto:\n",
|
|
5
5
|
"version": "2.X.X",
|
|
6
6
|
"title": "ServeRest",
|
|
7
7
|
"contact": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "serverest",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.3",
|
|
4
4
|
"description": "Servidor REST local de forma rápida e simples para estudo de testes de API",
|
|
5
5
|
"author": "Paulo Gonçalves <paulorochag@hotmail.com> (https://www.linkedin.com/in/paulo-goncalves/)",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"express": "^4.17.1",
|
|
51
51
|
"express-async-errors": "^3.1.1",
|
|
52
52
|
"express-query-int": "^3.0.0",
|
|
53
|
-
"express-status-monitor": "^1.3.3",
|
|
54
53
|
"express-validation": "^3.0.8",
|
|
55
54
|
"is-ci": "^3.0.0",
|
|
56
55
|
"jsonwebtoken": "^8.5.1",
|
package/src/app.js
CHANGED
|
@@ -46,11 +46,6 @@ if (!conf.semHeaderDeSeguranca) {
|
|
|
46
46
|
})
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
/* istanbul ignore if */
|
|
50
|
-
if (!ehAmbienteDeTestes) {
|
|
51
|
-
app.use(require('express-status-monitor')({ title: 'ServeRest Status' }))
|
|
52
|
-
}
|
|
53
|
-
|
|
54
49
|
logger(app)
|
|
55
50
|
|
|
56
51
|
/* istanbul ignore next */
|
|
@@ -59,7 +54,7 @@ switch (formaDeExecucao()) {
|
|
|
59
54
|
swaggerDocument.host = 'serverest.dev'
|
|
60
55
|
break
|
|
61
56
|
case 'agilizei':
|
|
62
|
-
swaggerDocument.host = 'serverest
|
|
57
|
+
swaggerDocument.host = 'agilizei.serverest.dev'
|
|
63
58
|
break
|
|
64
59
|
}
|
|
65
60
|
|