Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Services schema #16

Open
kynan opened this issue Apr 24, 2014 · 5 comments
Open

Services schema #16

kynan opened this issue Apr 24, 2014 · 5 comments
Assignees

Comments

@kynan
Copy link
Member

kynan commented Apr 24, 2014

A service currently has the following schema:

service_schema = {
    'name': {
        'type': 'string',
        'required': True,
    },
    'fields': {
        'type': 'dict',
        'required': True,
    },
    'unique': {
        'type': 'boolean',
        'default': False,
    },
    'description': {
        'type': 'string',
    },
    'group': {
        'type': 'string',
    },
    'keywords': {
        'type': 'list',
        'schema': {
            'type': 'string',
        },
    },
    'protocol_type': {
        'type': 'string',
    },
    'service_name': {
        'type': 'string',
        'required': True,
    },
    'service_code': {
        'type': 'string',
        'required': True,
        'unique': True,
    },
}

This schema is interpreted as follows:

  • name: human readable name, may be any string
  • fields: defines the schema of the service where each field must have a valid Eve schema
  • unique: must documents of a given service be unique?
  • description: human readable description, any string
  • group: What do we want this to be?
  • keywords: list of keywords characterizing the service
  • protocol_type: Still needed?
  • service_name: name used for the endpoint and the collection where documents for this service are stored
  • service_code: unique code used to identify the schema for a document

Is this schema still appropriate? I think we need to at least:

  • define what protocol_type is supposed to be or drop it
  • define what group is supposed to be or drop it
@kynan kynan added this to the Developer beta milestone Apr 24, 2014
@kynan kynan self-assigned this Apr 24, 2014
@nicowe
Copy link
Member

nicowe commented Apr 24, 2014

The service descriptions chosen to match http://wiki.open311.org/GeoReport_v2.
This is an open standard about geo reporting. It would be nice to conform to this.

@kynan
Copy link
Member Author

kynan commented Apr 24, 2014

Ok, I hadn't realised it was modelled on that standard. Yes, it definitely make sense to conform to that.

@nicowe
Copy link
Member

nicowe commented Apr 24, 2014

Yes I did not mention that anywhere.

@kynan
Copy link
Member Author

kynan commented Apr 25, 2014

So presumably we should then also implement Open311 service discovery

@nicowe
Copy link
Member

nicowe commented Apr 25, 2014

I think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants