Skip to content

Commit

Permalink
Merge pull request #892 from openfisca/update-doc-links
Browse files Browse the repository at this point in the history
Update doc links in API
  • Loading branch information
Morendil authored Jun 22, 2019
2 parents dedf14d + b8d8a74 commit b33bce4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

### 34.2.8 [#892](https://github.com/openfisca/openfisca-core/pull/892)

#### Documentation

- Update links to the doc in the API

### 34.2.7 [#886](https://github.com/openfisca/openfisca-core/pull/885)

#### Minor change
Expand Down
2 changes: 2 additions & 0 deletions openfisca_core/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Entity(object):
"""
Represents an entity (e.g. a person, a household, etc.) on which calculations can be run.
"""

def __init__(self, key, plural, label, doc):
self.key = key
self.label = label
Expand Down Expand Up @@ -58,6 +59,7 @@ class GroupEntity(Entity):
"""
Represents an entity composed of several persons with different roles, on which calculations are run.
"""

def __init__(self, key, plural, label, doc, roles):
super().__init__(key, plural, label, doc)
self.roles_description = roles
Expand Down
12 changes: 6 additions & 6 deletions openfisca_web_api/openAPI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ info:
title: "{COUNTRY_PACKAGE_NAME} Web API"
description: "The OpenFisca Web API lets you get up-to-date information and formulas included in the {COUNTRY_PACKAGE_NAME} legislation."
version: null
termsOfService: "https://openfisca.org/doc/publishing"
termsOfService: "https://openfisca.org/doc/licence.html"
contact:
email: "contact@openfisca.fr"
email: "contact@openfisca.org"
license:
name: "AGPL"
url: "https://www.gnu.org/licenses/agpl-3.0"
Expand All @@ -16,17 +16,17 @@ tags:
description: "A parameter is a numeric property of the legislation that can evolve over time."
externalDocs:
description: "Parameters documentation"
url: "https://openfisca.org/doc/parameters"
url: "https://openfisca.org/doc/key-concepts/parameters.html"
- name: "Variables"
description: "A variable depends on a person, or an entity (e.g. zip code, salary, income tax)."
externalDocs:
description: "Variables documentation"
url: "https://openfisca.org/doc/variables"
url: "https://openfisca.org/doc/key-concepts/variables.html"
- name: "Entities"
description: "An entity is a person of a group of individuals (such as a household)."
externalDocs:
description: "Entities documentation"
url: "https://openfisca.org/doc/person,_entities,_role.html"
url: "https://openfisca.org/doc/key-concepts/person,_entities,_role.html"
- name: "Calculations"
- name: "Documentation"
paths:
Expand All @@ -43,7 +43,7 @@ paths:
parameters:
- in: "body"
name: "Situation"
description: 'Describe the situation (persons and entities). Add the variable you wish to calculate in the proper entity, with null as the value. Learn more in our official documentation: https://openfisca.org/doc/openfisca-web-api/input-output-data'
description: 'Describe the situation (persons and entities). Add the variable you wish to calculate in the proper entity, with null as the value. Learn more in our official documentation: https://openfisca.org/doc/openfisca-web-api/input-output-data.html'
required: true
schema:
$ref: '#/definitions/SituationInput'
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

setup(
name = 'OpenFisca-Core',
version = '34.2.7',
version = '34.2.8',
author = 'OpenFisca Team',
author_email = 'contact@openfisca.org',
classifiers = [
Expand All @@ -58,7 +58,10 @@
('share/openfisca/openfisca-core', ['CHANGELOG.md', 'LICENSE', 'README.md']),
],
entry_points = {
'console_scripts': ['openfisca=openfisca_core.scripts.openfisca_command:main', 'openfisca-run-test=openfisca_core.scripts.openfisca_command:main'],
'console_scripts': [
'openfisca=openfisca_core.scripts.openfisca_command:main',
'openfisca-run-test=openfisca_core.scripts.openfisca_command:main',
],
},
extras_require = {
'web-api': api_requirements,
Expand Down

0 comments on commit b33bce4

Please sign in to comment.