Skip to content

Commit 65c3004

Browse files
authored
Merge pull request #234 from topcoder-platform/develop
Sync master with prod
2 parents 3a1512a + e3ad673 commit 65c3004

File tree

6 files changed

+1775
-1628
lines changed

6 files changed

+1775
-1628
lines changed

README.md

+21-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Topcoder Submission API
22

3+
Topcoder's API that deals with submissions, reviews, review summations and review types on the Topcoder platform
4+
5+
## Devlopment status
6+
7+
[![Total alerts](https://img.shields.io/lgtm/alerts/g/topcoder-platform/submissions-api.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/topcoder-platform/submissions-api/alerts/)[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/topcoder-platform/submissions-api.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/topcoder-platform/submissions-api/context:javascript)
8+
9+
### Deployment status
10+
11+
Dev: [![CircleCI](https://circleci.com/gh/topcoder-platform/submissions-api/tree/develop.svg?style=svg)](https://circleci.com/gh/topcoder-platform/submissions-api/tree/develop) Prod: [![CircleCI](https://circleci.com/gh/topcoder-platform/submissions-api/tree/master.svg?style=svg)](https://circleci.com/gh/topcoder-platform/submissions-api/tree/master)
12+
13+
## Swagger definition
14+
15+
- [Swagger](https://api.topcoder.com/v5/submissions/docs)
16+
17+
## Intended use
18+
19+
- Production API
20+
21+
## Related repos
22+
23+
- [ES Processor](https://github.com/topcoder-platform/submission-processor-es) - Updates data in ElasticSearch
324

425
## Pre-requisites
526

@@ -191,10 +212,6 @@ and then run the following script
191212
npm run update-to-v5-challengeId
192213
```
193214

194-
#### Swagger UI
195-
196-
Swagger UI will be served at `http://localhost:3000/docs`
197-
198215
## Postman verification
199216

200217
1. Open Postman

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ _.each(routes, (verbs, url) => {
134134
})
135135
/* eslint-enable no-param-reassign */
136136

137+
app.use('/v5/submissions/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument))
137138
app.use('/', apiRouter)
138139
app.use(errorMiddleware())
139140
// Serve Swagger Docs after setting host and base path
140141
swaggerDocument.host = config.HOST
141142
swaggerDocument.basePath = config.API_VERSION
142-
app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument))
143143

144144
// Check if the route is not found or HTTP method is not supported
145145
app.use('*', (req, res) => {

0 commit comments

Comments
 (0)