basePath: /v1
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: On-Street Parking API
    version: '1.0'
paths:
    /onstreetparking:
        get:
            consumes: []
            description: Returns occupancy details of a car park based on a facility
                ID.
            operationId: GetCarPark
            parameters:
            -   default: ''
                description: The campus ID you wish to get data from. If not specified,
                    a list of facility names with their ID will be returned.
                in: query
                name: campusID
                required: false
                type: string
            -   default: ''
                description: The name of the space to get data for. If not specified,
                    a list of facility names with their ID will be returned.
                in: query
                name: space
                required: false
                type: string
            produces:
            - application/json
            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 occurred.
                    examples: {}
                    schema:
                        $ref: '#/definitions/ErrorDetails'
                '503':
                    description: The server is currently unavailable.
                    examples: {}
                    schema:
                        $ref: '#/definitions/ErrorDetails'
            summary: Parking spaces
            tags:
            - onstreetparking
    /onstreetparking/parkingbays:
        get:
            consumes: []
            description: Returns all parking bays within given coordinates
            operationId: GetOnStreetParkingBays
            parameters:
            -   default: ''
                in: query
                name: topLeftLatitude
                required: true
                type: string
            -   default: ''
                in: query
                name: topLeftLongitude
                required: true
                type: string
            -   default: ''
                in: query
                name: bottomRightLatitude
                required: true
                type: string
            -   default: ''
                in: query
                name: bottomRightLongitude
                required: true
                type: string
            produces:
            - application/json
            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 occurred.
                    examples: {}
                    schema:
                        $ref: '#/definitions/ErrorDetails'
                '503':
                    description: The server is currently unavailable.
                    examples: {}
                    schema:
                        $ref: '#/definitions/ErrorDetails'
            summary: Parking bay details
            tags:
            - onstreetparkingbays
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: onstreetparking
