Commit 74dbd689 authored by Simon Pastor's avatar Simon Pastor
Browse files

ams yaml example fix

parent 2feb6b7f
Loading
Loading
Loading
Loading
+16 −16
Original line number Original line Diff line number Diff line
@@ -91,13 +91,6 @@ paths:
      requestBody:
      requestBody:
        description: Application mobility service to be created
        description: Application mobility service to be created
        required: true
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegistrationInfo'    
      responses:
        '201':
          description: Successful response for application mobility service creation
        content:
        content:
          application/json:
          application/json:
            schema:
            schema:
@@ -111,6 +104,13 @@ paths:
                  contextTransferState: 0
                  contextTransferState: 0
              serviceConsumerId:
              serviceConsumerId:
                appInstanceId: '9afdbca8-afac-405b-b220-4154828280b8'
                appInstanceId: '9afdbca8-afac-405b-b220-4154828280b8'
      responses:
        '201':
          description: Successful response for application mobility service creation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegistrationInfo'
        '400':
        '400':
          $ref: '#/components/responses/400'
          $ref: '#/components/responses/400'
        '401':
        '401':
@@ -285,15 +285,6 @@ paths:
      operationId: subPOST
      operationId: subPOST
      requestBody:
      requestBody:
        required: true
        required: true
        content:
          application/json:
            schema:
              oneOf:
               - $ref: '#/components/schemas/MobilityProcedureSubscription'
               - $ref: '#/components/schemas/AdjacentAppInfoSubscription'
      responses:
        '201':
          description: 'Created subscription is described using the appropriate data type'
        content:
        content:
          application/json:
          application/json:
            schema:
            schema:
@@ -310,6 +301,15 @@ paths:
                  value: '10.100.0.3'
                  value: '10.100.0.3'
                - type: 1
                - type: 1
                  value: '10.100.0.1'
                  value: '10.100.0.1'
      responses:
        '201':
          description: 'Created subscription is described using the appropriate data type'
          content:
            application/json:
              schema:
               oneOf:
               - $ref: '#/components/schemas/MobilityProcedureSubscription'
               - $ref: '#/components/schemas/AdjacentAppInfoSubscription'  
        '400':
        '400':
          $ref: '#/components/responses/400'
          $ref: '#/components/responses/400'
        '401':
        '401':
+1 −1
Original line number Original line Diff line number Diff line
@@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)


- API version: 2.1.1
- API version: 2.1.1
- Build date: 2021-09-15T18:31:07.814-04:00[America/New_York]
- Build date: 2021-09-15T21:27:34.531-04:00[America/New_York]




### Running the server
### Running the server
+19 −2
Original line number Original line Diff line number Diff line
@@ -140,6 +140,15 @@ paths:
          application/json:
          application/json:
            schema:
            schema:
              $ref: '#/components/schemas/RegistrationInfo'
              $ref: '#/components/schemas/RegistrationInfo'
            example:
              deviceInformation:
              - appMobilityServiceLevel: 1
                associateId:
                  type: 1
                  value: 10.100.0.3
                contextTransferState: 0
              serviceConsumerId:
                appInstanceId: 9afdbca8-afac-405b-b220-4154828280b8
        required: true
        required: true
      responses:
      responses:
        "201":
        "201":
@@ -148,7 +157,6 @@ paths:
            application/json:
            application/json:
              schema:
              schema:
                $ref: '#/components/schemas/RegistrationInfo'
                $ref: '#/components/schemas/RegistrationInfo'
            example: {}
        "400":
        "400":
          description: 'Bad Request : used to indicate that incorrect parameters were
          description: 'Bad Request : used to indicate that incorrect parameters were
            passed to the request.'
            passed to the request.'
@@ -527,6 +535,16 @@ paths:
          application/json:
          application/json:
            schema:
            schema:
              $ref: '#/components/schemas/body'
              $ref: '#/components/schemas/body'
            example:
              subscriptionType: MobilityProcedureSubscription
              callbackReference: http://my.callback.com/amsi-mobility-procedure/some-id
              filterCriteria:
                appInstanceId: 9afdbca8-afac-405b-b220-4154828280b8
                associateId:
                - type: 1
                  value: 10.100.0.3
                - type: 1
                  value: 10.100.0.1
        required: true
        required: true
      responses:
      responses:
        "201":
        "201":
@@ -536,7 +554,6 @@ paths:
            application/json:
            application/json:
              schema:
              schema:
                $ref: '#/components/schemas/body'
                $ref: '#/components/schemas/body'
            example: {}
        "400":
        "400":
          description: 'Bad Request : used to indicate that incorrect parameters were
          description: 'Bad Request : used to indicate that incorrect parameters were
            passed to the request.'
            passed to the request.'
+2 −2
Original line number Original line Diff line number Diff line
@@ -831,7 +831,7 @@ func (a *AmsiApiService) AppMobilityServicePOST(ctx context.Context, body Regist
	}
	}


	// to determine the Accept header
	// to determine the Accept header
	localVarHttpHeaderAccepts := []string{"application/json", "example"}
	localVarHttpHeaderAccepts := []string{"application/json"}


	// set Accept header
	// set Accept header
	localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
	localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
@@ -1668,7 +1668,7 @@ func (a *AmsiApiService) SubPOST(ctx context.Context, body Body) (Body, *http.Re
	}
	}


	// to determine the Accept header
	// to determine the Accept header
	localVarHttpHeaderAccepts := []string{"application/json", "example"}
	localVarHttpHeaderAccepts := []string{"application/json"}


	// set Accept header
	// set Accept header
	localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
	localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+2 −2
Original line number Original line Diff line number Diff line
@@ -194,7 +194,7 @@ No authorization required
### HTTP request headers
### HTTP request headers


 - **Content-Type**: application/json
 - **Content-Type**: application/json
 - **Accept**: application/json, example
 - **Accept**: application/json


[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


@@ -370,7 +370,7 @@ No authorization required
### HTTP request headers
### HTTP request headers


 - **Content-Type**: application/json
 - **Content-Type**: application/json
 - **Accept**: application/json, example
 - **Accept**: application/json


[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)