/swapi-sls

Primary LanguageJavaScript

Star War API

¡Bienvenido a swapi (extended), la API de Star Wars!.

Installation

Instale módulos npm.

npm install

Setup Environment

You can use store parameter to persist env in serverless.yml

custom:
  #documentation: ${file(serverless.doc.yml):documentation}
  settings:
    POST_TABLE: PEOPLE_DB
    URL_STARTWARS: https://swapi.py4e.com/api

Integration with SWAPI

Arquitectura

Serverless plugins

Plugins de serverless utilizados

Plugin description
serverless-offline for local testing
serverless-dynamodb-local for local testing

OAS - OPENAPI

The resources implemented are as follows:

cat oas/oas.yml

LOCAL TESTING

npm start

Scripts & Deploy

To generate CloudFormation files run:

npm run deploy

By properly configuring the AWS Credentials, the sls deploy command should deploy the API's correctly.