Skip to content

Instantly share code, notes, and snippets.

View yhnavein's full-sized avatar

Piotr Dąbrowski yhnavein

View GitHub Profile
@yhnavein
yhnavein / petstore.json
Created July 7, 2019 22:13
Petstore v3
{
"openapi": "3.0.0",
"info": {
"title": "Swagger Petstore",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"license": {
"name": "MIT",
"url": "http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT"
},
"version": "1.0.0"
@yhnavein
yhnavein / README.md
Created January 8, 2018 09:43
NSwag for Angular 5
  1. Install into your project yarn add @yhnavein/nswag@v0.0.1-alpha7

  2. Add nswag.json and configure your settings

  3. Add task for generating services in package.json:

"scripts": {
 "api": "nswag run nswag.json"