4 "description" : "This is the ONAP OOF HAS (Homing and Allocation Service) API",
8 "email" : "frank.sandoval@oamtechnologies.com"
11 "name" : "Apache 2.0",
12 "url" : "http://www.apache.org/licenses/LICENSE-2.0.html"
15 "securityDefinitions" : {
18 "description" : "HTTP Basic Auth"
27 "summary" : "retrieve versions",
28 "operationId" : "retrieveVersions",
29 "description" : "retrieve supported versions of the API",
31 "produces" : [ "application/json" ],
34 "description" : "list of supported versions",
38 "$ref" : "#/definitions/Versions"
43 "description" : "bad request",
45 "$ref" : "#/definitions/Error"
49 "description" : "unauthorized request"
56 "summary" : "create a plan",
57 "operationId" : "createPlan",
58 "description" : "creates a plan from one or more service demands",
59 "consumes" : [ "application/json" ],
60 "produces" : [ "application/json" ],
64 "description" : "service demand",
66 "$ref" : "#/definitions/Demand"
71 "description" : "plan created",
74 "$ref" : "#/definitions/Plan"
79 "description" : "bad request",
81 "$ref" : "#/definitions/Error"
85 "description" : "unauthorized request"
90 "/v1/plans/{plan_id}" : {
92 "summary" : "retreive a plan",
93 "operationId" : "getPlan",
94 "description" : "retrieve a plan",
95 "produces" : [ "application/json" ],
99 "description" : "UUID of plan identifier",
106 "description" : "retrieve a plan",
110 "$ref" : "#/definitions/Plan"
115 "description" : "bad request",
117 "$ref" : "#/definitions/Error"
121 "description" : "unauthorized request"
124 "description" : "Internal Server Error"
129 "summary" : "delete a plan",
130 "operationId" : "deletePlan",
131 "description" : "delete a plan",
132 "produces" : [ "application/json" ],
136 "description" : "UUID of plan identifier",
143 "description" : "deleted a plan"
146 "description" : "bad request",
148 "$ref" : "#/definitions/Error"
152 "description" : "unauthorized request"
161 "required" : [ "transaction_id", "template" ],
173 "example" : "d290f1ee-6c54-4b01-90e6-d701748f0851"
178 "description" : "See here for template format",
179 "url" : "http://onap.readthedocs.io/en/latest/submodules/optf/has.git/docs/sections/homingspecification.html"
186 "required" : [ "plan", "id", "transaction_id", "name", "status", "message", "links", "recommendations" ],
190 "example" : "JSON string describing plan",
192 "description" : "See here for plan format",
193 "url" : "http://onap.readthedocs.io/en/latest/submodules/optf/has.git/docs/sections/offeredapis.html"
199 "example" : "d290f1ee-6c54-4b01-90e6-d701748f0851"
204 "example" : "d290f1ee-6c54-4b01-90e6-d701748f0851"
208 "example" : "name of plan"
212 "enum" : [ "template", "translated", "solving", "solved", "not found", "error" ]
216 "example" : "Additional context, if any, around the message status"
221 "$ref" : "#/definitions/Link"
224 "description" : "See here for links description",
225 "url" : "http://onap.readthedocs.io/en/latest/submodules/optf/has.git/docs/sections/offeredapis.html"
228 "recommendations" : {
231 "$ref" : "#/definitions/Recommendation"
234 "description" : "Refer to the Demand candidate schema in the Homing Template Guide for further details",
235 "url" : "http://onap.readthedocs.io/en/latest/submodules/optf/has.git/docs/sections/homingspecification.html"
241 "required" : [ "href", "rel" ],
245 "example" : "http://localhost:8091/v1"
254 "required" : [ "recommendation" ],
258 "description" : "JSON string, see description of Plan.recommendations",
259 "example" : "JSON string describing recommendation"
264 "required" : [ "base", "type" ],
268 "example" : "application/json"
272 "example" : "application/vnd.onap.has-v1+json"
277 "required" : [ "name", "links", "media_types", "status", "updated" ],
286 "$ref" : "#/definitions/Link"
292 "$ref" : "#/definitions/MediaTypes"
297 "example" : "EXPERIMENTAL"
301 "example" : "2016-11-01T00:00:00Z"
309 "example" : "Bad Request"
313 "example" : "pl an did not pass validation against callable"
323 "example" : "message"
327 "example" : "traceback"
338 "schemes" : [ "https" ],
339 "host" : "virtserver.swaggerhub.com",
340 "basePath" : "/onap_oof/has/1.0.0"