Skip to content

Create project basic structure #3

@ldmi3i

Description

@ldmi3i

Create basic interfaces and infrastructure.
Data scraping service supposed to

  1. Receive url string from the Queue.
  2. Recognise the url type (currently url needs to be a link to swagger file, if not - error)
  3. Check file availability and Download file (if not available - error).
  4. Pass the file to the swagger parser.

The parser is supposed to check and parse file content and return API Definition (API Definition in this task it can be just empty struct).

Queue event listener will be created later.
This task we can just suppose that queue event listener will retrieve some UrlRequest with url as one of the fields.
After that EventListener calls UrlEventHandler.handle(req UrlRequest) (ApiDefinition, error) method. (for instance)
So here you need to create logic starting from UrlEventHandler to Parser (Parser here just an interface with 'parse' method) .

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions