basePath: /v1/maritime
consumes:
- '*/*'
definitions:
    ErrorDetails:
        description: Error response
        example:
            ErrorDetails:
                ErrorDateTime: XXXXXXXXXX
                Message: XXXXXXXXXX
                RequestedMethod: XXXXXXXXXX
                RequestedUrl: XXXXXXXXXX
                TransactionId: XXXXXXXXXX
        properties:
            ErrorDateTime:
                type: string
            Message:
                type: string
            RequestedMethod:
                type: string
            RequestedUrl:
                type: string
            TransactionId:
                type: string
        required:
        - TransactionId
        - ErrorDateTime
        - Message
        - RequestedUrl
        - RequestedMethod
        type: object
host: api.transport.nsw.gov.au
info:
    title: NSW Maritime Alerts Reporting Platform API
    version: '1.0'
paths:
    /spatial:
        get:
            description: '

                <b>Some example queries are: </b> <br>

                ```

                SELECT * FROM maritime_marp;

                SELECT * FROM maritime_marp WHERE type = ''MARINE_NOTICE'';

                SELECT * FROM maritime_marp WHERE type = ''MARINE_NOTICE'' AND subtype
                = ''NAVIGATION_RESTRICTION'';

                ```'
            parameters:
            -   default: geojson
                description: Select format of the return data
                enum:
                - csv
                - json
                - kml
                - geojson
                - shp
                format: int32
                in: query
                name: format
                required: false
                type: string
            -   default: SELECT * FROM maritime_marp
                description: Sql query you wish to execute
                in: query
                name: q
                required: false
                type: string
            produces:
            - application/json
            - csv
            - kml
            - shp
            responses:
                '200':
                    description: The request has been processed successfully.
                    examples: {}
                    schema:
                        type: file
                '401':
                    description: The application calling the API has not been authenticated.
                    examples: {}
                    schema:
                        $ref: '#/definitions/ErrorDetails'
                '404':
                    description: The requested resource could not be found.
                    examples: {}
                    schema:
                        $ref: '#/definitions/ErrorDetails'
                '500':
                    description: An internal error has occured.
                    examples: {}
                    schema:
                        $ref: '#/definitions/ErrorDetails'
                '503':
                    description: The server is currently unavailable.
                    examples: {}
                    schema:
                        $ref: '#/definitions/ErrorDetails'
            summary: Execute various queries on Maritime Alerts Reporting Platform
                API
produces:
- application/json
schemes:
- https
security:
-   APIKey: []
securityDefinitions:
    APIKey:
        description: 'Expected Format: apikey [TOKEN]'
        in: header
        name: Authorization
        type: apiKey
swagger: '2.0'
tags:
-   name: marp
