Skip to content

arielmirra/serverless-scrapping

Repository files navigation

serverless-scrapping API - Ariel Mirra

How to use

This api implements the following OAS Spec:

{
  "openapi": "3.0.0",
  "info": {
    "title": "Serverless API - Ariel Mirra",
    "description": "API to make requests to the serverless service built for TP7 DPOI",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://0tihe25hqk.execute-api.us-east-1.amazonaws.com/test"
    }
  ],
  "paths": {
    "/scraps": {
      "get": {
        "summary": "Returns a list of saved scraps",
        "responses": {
          "200": {
            "description": "A JSON array of scraps",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Makes a scrap",
        "responses": {
          "201": {
            "description": "Scrap saved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}

Test it

In postman:

That's all!

About

This repo can scrap webpages on demand and return scrapped elements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages