Skip to content

Commit

Permalink
feat(swagger): Add new Auth Service endpoints to swagger.json (#8)
Browse files Browse the repository at this point in the history
- Also splits swagger references into separate yaml files

Part of #280
  • Loading branch information
lewisdaly authored Jun 25, 2020
1 parent ff073a7 commit bc8774d
Show file tree
Hide file tree
Showing 9 changed files with 2,300 additions and 2,012 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,17 @@ npm run start
```


### Updating the OpenApi (Swagger) Spec

We use `multi-file-swagger` to make our swagger files more manageable.

After making changes to the `.yaml` files in `./src/interface/`, update the `swagger.json` file like so:

```bash
./node_modules/.bin/multi-file-swagger ./src/interface/template.yaml > src/interface/swagger.json
```

> Note: We will likely want to move to swagger 3.0 at some point, and once we do, we will be able to use the [common api snippets](https://github.com/mojaloop/api-snippets) library to factor out common Mojaloop snippets.
> Keep track of [#352 - Update to OpenAPI v3](https://app.zenhub.com/workspaces/pisp-5e8457b05580fb04a7fd4878/issues/mojaloop/mojaloop/352)

Loading

0 comments on commit bc8774d

Please sign in to comment.