Skip to content

Commit

Permalink
Merge pull request #78 from codex-team/feat/servers-schema
Browse files Browse the repository at this point in the history
feat: added servers and security schema
  • Loading branch information
GeekaN2 authored Oct 21, 2023
2 parents 027f9a2 + 3775a43 commit 7946c56
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/presentation/http/http-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,29 @@ export default class HttpApi implements Api {
version: '0.1.0',
},
servers: [ {
url: 'http://localhost',
} ],
url: 'http://localhost:1337',
description: 'Localhost environment'
}, {
url: 'https://notex.so',
description: 'Stage environment'
}],
components: {
securitySchemes: {
oAuthGoogle: {
type: 'oauth2',
description: 'Provied authorization uses OAuth 2 with Google',
flows: {
authorizationCode: {
authorizationUrl: 'https://notex.so/oauth/google/login',
scopes: {
'notes_management': 'Create, read, update and delete notes',
},
tokenUrl: ''
}
}
}
}
}
},
});
}
Expand Down

0 comments on commit 7946c56

Please sign in to comment.