sonata-nfv / tng-api-gtw Goto Github PK
View Code? Open in Web Editor NEWThe API Gateway for the 5GTANGO Verification&Validation and Service Platforms (built on top of SONATA).
Home Page: http://5gtango.eu
License: Apache License 2.0
The API Gateway for the 5GTANGO Verification&Validation and Service Platforms (built on top of SONATA).
Home Page: http://5gtango.eu
License: Apache License 2.0
This endpoint shall provide to it's consumers a list of available endpoints.
This features creates a strong dependency with those modules... a WiP.
Do a README-Driven-Design...
The Portal needs the options
method. In SONATA we did the following:
options '/?' do
response.headers['Access-Control-Allow-Origin'] = '*'
response.headers['Access-Control-Allow-Methods'] = 'POST,PUT'
response.headers['Access-Control-Allow-Headers'] = 'Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With'
halt 200
end
The feature is developed, we need to test it's integration
Include page
and page_size
query parameters
Was to tng-gtk-sp
Depends on #32
Now that there's a basic capability of routing input to output, let's improve it
.../api/v3/packages/status/1234...
is not being correctely translated into .../packages/status/1234...
developer
, customer
or admin
are currently hard-coded, and shouldn't
According to the 2018-03-12 call:
POST /descriptors
(where JSON object is a nst_content)GET /descriptors/{nstId}
DELETE /descriptors/{nstId}
POST /nsi
GET /nsi
GET /nsi/{nsiId}
DELETE /nsi/{nsiId}
POST /nsi/{nsiId}/terminate
Currently still going to a file, we want it in the STDOUT (STDERR)
E.g., http "pre-int-vnv-bcn.5gtango.eu:32002/api/v3/packages?name=ns-package-example&vendor=eu.5gtango&version=0.1"
returns []
/services
andpoint/api/v1
(instead of v3
)Check w/ @peusterm how to deal with process_uuid
simultaneously with package_uuid
To create an NST do this:
curl -i -H "Content-Type:application/json" -X POST -d'{"name":"Rubik_NST", "version":"<version_number>", "author":"<author_name>", "vendor":"<vendor_name>", "nstNsdIds":[{"NsdId":"<network_service_ID>"}]}' pre-int-sp-ath.5gtango.eu:32002/api/nst/v1/descriptors
Valid NST example:
{
"designer": "Pol",
"id": "30ef541d-24ee-4ec3-8c00-f53b4a3791cb",
"name": "Rubik_NST",
"notificationTypes": "",
"nstNsdIds": [
"6a01afdc-9d42-4bc9-866c-a8a3868fdf5e"
],
"onboardingState": "ENABLED",
"operationalState": "ENABLED",
"usageState": "NOT_IN_USE",
"userDefinedData": "",
"vendor": "5gTango",
"version": "1.0"
}
Consider this endpoint: curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/mgmt/guaranteesList
Depends on #32
When the path is not found, [400, {}, ["Error finding GET"]]
is being returned, instead of raising an exception
Depends on #32. Current implementation gives modules/mico-services the same mechanism as human users: a token that expires with time. This is not practical: we want users to be able to generate API tokens that can be used without such time restrictions. The user can renew his/her API keys in the Portal or through the API (with the old key). These API tokens can then be used to authenticate/authorize the user's module (e.g., SDK, OSS, ...) to access the V&V/SP.
Extract son-gtkusr from son-gkeeper, as well as its dependencies, to be used here.
From user story #225
These two need to be distinguished from the later to be added /records/test-results
tng-sla-mgmt/api/slas/v1/agreements/
GET
and DELETE
Depends on #32
Endpoint agreed with @mpeuster: โฆ/packages/status/:process_uuid
(sonata-nfv/tng-sdk-package#49 and sonata-nfv/tng-gtk-common#22)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.