vincentlowe icon

acme-banking-api-day1.raml

vincentlowe | PRO | 08/16/22 03:45:11 AM UTC | 0 ⭐ | 5518 👁️ | Never ⏰ | []
YAML |

1.66 KB

|

None

|

0 👍

/

0 👎

#%RAML 1.0
title: ACME Banking API
version: 1.0.0
mediaType: 
  - application/json
 
types:
  Customer: !include datatypes/Customer.raml
  Account: !include datatypes/Account.raml
  Transaction: !include datatypes/Transaction.raml
  CustomErrorMessage: !include /datatypes/CustomErrorMessage.raml
 
/customers:
  get:
    headers:
      Accept?: 
    responses:
      200:
        headers:
          Cache-Control:
          Expires:
            type: datetime
        body:
          application/json:
            type: Customer[]
            examples: !include /examples/CustomersExample.raml
          application/xml:
            type: Customer[]
            examples: !include /examples/CustomersExample.raml
      404:
        body:
          type: CustomErrorMessage
  post:
    body:
      type: Customer
    responses:
      201:
        headers:
          Location:
        body:
          type: string
      503:
        body:
          type: CustomErrorMessage
 
  /{ID}:
    get:
      responses:
        200:
          body:
            type: array
 
    delete:
    put:
      body:
      responses:
        200:
          body:
        201:
          headers:
            Location:
          body:
            
    /accounts:
      get:

/accounts:
  get:
  post:
  
  /{ID}:
    get:
    delete:
      responses:
        200:
          body:  
        404:
          body:
            type: CustomErrorMessage
    patch:
      body:
      responses:
        204:
        501:
          body:
            type: CustomErrorMessage
    
    /transactions:
      get:

/transactions:
  get:
  post:

 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎