sonata-nfv / tng-sdk-project

The 5GTANGO SDK tool to manage network service projects.
http://www.5gtango.eu
Apache License 2.0
5 stars 4 forks source link

Adjust REST API of descriptorgen #65

Closed stefanbschneider closed 5 years ago

stefanbschneider commented 5 years ago

Updates to facilitate integration with SDK portal: https://github.com/sonata-nfv/tng-portal/wiki/UPD-workflow-mockups

stefanbschneider commented 5 years ago

Added custom image names and types in the CLI, but skipping it for now for the REST API. The problem is to pass multiple image names from the REST API to the CLI module. Apprently, argparse can easily parse multiple arguments from CLI, but not when they are passed directly. See https://stackoverflow.com/questions/54552574/argparse-use-parser-parse-args-with-nargs-and-args-rather-than-command-line-i

stefanbschneider commented 5 years ago

Actually, the problem wasn't in argparse, but in how the REST args were parsed and handled by Flask Restplus (I used some kind of list append parser), which is now fixed with PR #67