Last active
August 16, 2019 19:23
-
-
Save ahmetkucukoglu/561d4a2bfd1aa0663ea386a1bdfc0603 to your computer and use it in GitHub Desktop.
serverless.yml v1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: ads-api | |
provider: | |
name: aws | |
runtime: nodejs10.x | |
region: eu-central-1 | |
profile: serverlessuser | |
apiKeys: | |
- AdsAPIKey | |
functions: | |
create: | |
handler: create.create | |
events: | |
- http: | |
path: api/ads | |
method: post | |
private: true | |
request: | |
schema: | |
application/json: ${file(create_request.json)} | |
update: | |
handler: update.update | |
events: | |
- http: | |
path: api/ads/{id} | |
method: put | |
private: true | |
request: | |
schema: | |
application/json: ${file(update_request.json)} | |
delete: | |
handler: delete.delete | |
events: | |
- http: | |
path: api/ads/{id} | |
method: delete | |
private: true | |
getAll: | |
handler: getAll.getAll | |
events: | |
- http: | |
path: api/ads | |
method: get | |
private: true | |
getById: | |
handler: getById.getById | |
events: | |
- http: | |
path: api/ads/{id} | |
method: get | |
private: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment