generated from rog-golang-buddies/golang-template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Milestone
Description
Create basic interfaces and infrastructure.
Data scraping service supposed to
- Receive url string from the Queue.
- Recognise the url type (currently url needs to be a link to swagger file, if not - error)
- Check file availability and Download file (if not available - error).
- 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) .