Skip to content

Commit f0ef045

Browse files
committed
feat(client): Update to API specification v2.4
1 parent 4cd7a9b commit f0ef045

File tree

86 files changed

+873
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+873
-110
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.5.0
4+
5+
* feat(scores): New metadata and update of `PUT /v2/scores/{score}`:
6+
* Added metadata in API `subtitle`, `lyricist`, `composer`, `description`, `tags`, `creationType`, `license`, `licenseText`, `durationTime`, `numberMeasures`, `mainTempoQpm`, `publicationDate`.
7+
* `PUT /v2/scores/{score}`: Remove `title` property, this one can be updated by saving a new revision of the score data.
8+
* `PUT /v2/scores/{score}`: New settable properties: `description`, `tags`, `creationType`, `license`.
9+
310
## 0.4.0
411

512
* feat(user): Add profile theme and instruments played.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,11 @@ Class | Method | HTTP request | Description
182182
- [ScoreCommentUpdate](docs/ScoreCommentUpdate.md)
183183
- [ScoreCommentsCounts](docs/ScoreCommentsCounts.md)
184184
- [ScoreCreation](docs/ScoreCreation.md)
185+
- [ScoreCreationType](docs/ScoreCreationType.md)
185186
- [ScoreData](docs/ScoreData.md)
186187
- [ScoreDataEncoding](docs/ScoreDataEncoding.md)
187188
- [ScoreFork](docs/ScoreFork.md)
189+
- [ScoreLicense](docs/ScoreLicense.md)
188190
- [ScoreLikesCounts](docs/ScoreLikesCounts.md)
189191
- [ScoreModification](docs/ScoreModification.md)
190192
- [ScorePrivacy](docs/ScorePrivacy.md)

docs/ScoreCreationType.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ScoreCreationType
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8+
9+

docs/ScoreDetails.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,22 @@ Name | Type | Description | Notes
99
**privacy** | [**ScorePrivacy**](ScorePrivacy.md) | | [optional]
1010
**user** | [**UserPublicSummary**](UserPublicSummary.md) | | [optional]
1111
**html_url** | **str** | The url where the score can be viewed in a web browser | [optional]
12+
**subtitle** | **str** | Subtitle of the score | [optional]
13+
**lyricist** | **str** | Lyricist of the score | [optional]
14+
**composer** | **str** | Composer of the score | [optional]
15+
**description** | **str** | Description of the creation | [optional]
16+
**tags** | **list[str]** | Tags describing the score | [optional]
17+
**creation_type** | [**ScoreCreationType**](ScoreCreationType.md) | | [optional]
18+
**license** | [**ScoreLicense**](ScoreLicense.md) | | [optional]
19+
**license_text** | **str** | Additional license text written on the exported/printed score | [optional]
20+
**duration_time** | **int** | In seconds, an approximative duration of the score | [optional]
21+
**number_measures** | **int** | The number of measures in the score | [optional]
22+
**main_tempo_qpm** | **int** | The main tempo of the score (in QPM) | [optional]
1223
**rights** | [**ScoreRights**](ScoreRights.md) | | [optional]
1324
**collaborators** | [**list[ScoreCollaborator]**](ScoreCollaborator.md) | The list of the collaborators of the score | [optional]
1425
**creation_date** | **datetime** | The date when the score was created | [optional]
1526
**modification_date** | **datetime** | The date of the last revision of the score | [optional]
27+
**publication_date** | **datetime** | The date when the score was published on Flat | [optional]
1628
**organization** | **str** | If the score has been created in an organization, the identifier of this organization. This property is especially used with the score privacy `organizationPublic`. | [optional]
1729
**parent_score** | **str** | If the score has been forked, the unique identifier of the parent score. | [optional]
1830
**instruments** | **list[str]** | An array of the instrument identifiers used in the last version of the score. This is mainly used to display a list of the instruments in the Flat's UI or instruments icons. The format of the strings is `{instrument-group}.{instrument-id}`. | [optional]

docs/ScoreLicense.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ScoreLicense
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8+
9+

docs/ScoreModification.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**privacy** | [**ScorePrivacy**](ScorePrivacy.md) | | [optional]
7-
**title** | **str** | A new title of the score | [optional]
87
**sharing_key** | **str** | When using the `privacy` mode `privateLink`, this property can be used to set a custom sharing key, otherwise a new key will be generated. | [optional]
8+
**description** | **str** | Description of the creation | [optional]
9+
**tags** | **list[str]** | Tags describing the score | [optional]
10+
**creation_type** | [**ScoreCreationType**](ScoreCreationType.md) | | [optional]
11+
**license** | [**ScoreLicense**](ScoreLicense.md) | | [optional]
912

1013
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1114

flat_api/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Flat API allows you to easily extend the abilities of the [Flat Platform](https://flat.io), with a wide range of use cases including the following: * Creating and importing new music scores using MusicXML or MIDI files * Browsing, updating, copying, exporting the user's scores (for example in MP3, WAV or MIDI) * Managing educational resources with Flat for Education: creating & updating the organization accounts, the classes, rosters and assignments. The Flat API is built on HTTP. Our API is RESTful It has predictable resource URLs. It returns HTTP response codes to indicate errors. It also accepts and returns JSON in the HTTP body. The [schema](/swagger.yaml) of this API follows the [OpenAPI Initiative (OAI) specification](https://www.openapis.org/), you can use and work with [compatible Swagger tools](http://swagger.io/open-source-integrations/). This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). You can use your favorite HTTP/REST library for your programming language to use Flat's API. This specification and reference is [available on Github](https://github.com/FlatIO/api-reference). Getting Started and learn more: * [API Overview and interoduction](https://flat.io/developers/docs/api/) * [Authentication (Personal Access Tokens or OAuth2)](https://flat.io/developers/docs/api/authentication.html) * [SDKs](https://flat.io/developers/docs/api/sdks.html) * [Rate Limits](https://flat.io/developers/docs/api/rate-limits.html) * [Changelog](https://flat.io/developers/docs/api/changelog.html)
77
8-
OpenAPI spec version: 2.2.0
8+
OpenAPI spec version: 2.4.0
99
Contact: developers@flat.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -55,9 +55,11 @@
5555
from .models.score_comment_update import ScoreCommentUpdate
5656
from .models.score_comments_counts import ScoreCommentsCounts
5757
from .models.score_creation import ScoreCreation
58+
from .models.score_creation_type import ScoreCreationType
5859
from .models.score_data import ScoreData
5960
from .models.score_data_encoding import ScoreDataEncoding
6061
from .models.score_fork import ScoreFork
62+
from .models.score_license import ScoreLicense
6163
from .models.score_likes_counts import ScoreLikesCounts
6264
from .models.score_modification import ScoreModification
6365
from .models.score_privacy import ScorePrivacy

flat_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
The Flat API allows you to easily extend the abilities of the [Flat Platform](https://flat.io), with a wide range of use cases including the following: * Creating and importing new music scores using MusicXML or MIDI files * Browsing, updating, copying, exporting the user's scores (for example in MP3, WAV or MIDI) * Managing educational resources with Flat for Education: creating & updating the organization accounts, the classes, rosters and assignments. The Flat API is built on HTTP. Our API is RESTful It has predictable resource URLs. It returns HTTP response codes to indicate errors. It also accepts and returns JSON in the HTTP body. The [schema](/swagger.yaml) of this API follows the [OpenAPI Initiative (OAI) specification](https://www.openapis.org/), you can use and work with [compatible Swagger tools](http://swagger.io/open-source-integrations/). This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). You can use your favorite HTTP/REST library for your programming language to use Flat's API. This specification and reference is [available on Github](https://github.com/FlatIO/api-reference). Getting Started and learn more: * [API Overview and interoduction](https://flat.io/developers/docs/api/) * [Authentication (Personal Access Tokens or OAuth2)](https://flat.io/developers/docs/api/authentication.html) * [SDKs](https://flat.io/developers/docs/api/sdks.html) * [Rate Limits](https://flat.io/developers/docs/api/rate-limits.html) * [Changelog](https://flat.io/developers/docs/api/changelog.html)
66
7-
OpenAPI spec version: 2.2.0
7+
OpenAPI spec version: 2.4.0
88
Contact: developers@flat.io
99
Generated by: https://github.com/swagger-api/swagger-codegen.git
1010
"""

flat_api/apis/account_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Flat API allows you to easily extend the abilities of the [Flat Platform](https://flat.io), with a wide range of use cases including the following: * Creating and importing new music scores using MusicXML or MIDI files * Browsing, updating, copying, exporting the user's scores (for example in MP3, WAV or MIDI) * Managing educational resources with Flat for Education: creating & updating the organization accounts, the classes, rosters and assignments. The Flat API is built on HTTP. Our API is RESTful It has predictable resource URLs. It returns HTTP response codes to indicate errors. It also accepts and returns JSON in the HTTP body. The [schema](/swagger.yaml) of this API follows the [OpenAPI Initiative (OAI) specification](https://www.openapis.org/), you can use and work with [compatible Swagger tools](http://swagger.io/open-source-integrations/). This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). You can use your favorite HTTP/REST library for your programming language to use Flat's API. This specification and reference is [available on Github](https://github.com/FlatIO/api-reference). Getting Started and learn more: * [API Overview and interoduction](https://flat.io/developers/docs/api/) * [Authentication (Personal Access Tokens or OAuth2)](https://flat.io/developers/docs/api/authentication.html) * [SDKs](https://flat.io/developers/docs/api/sdks.html) * [Rate Limits](https://flat.io/developers/docs/api/rate-limits.html) * [Changelog](https://flat.io/developers/docs/api/changelog.html)
77
8-
OpenAPI spec version: 2.2.0
8+
OpenAPI spec version: 2.4.0
99
Contact: developers@flat.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flat_api/apis/class_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Flat API allows you to easily extend the abilities of the [Flat Platform](https://flat.io), with a wide range of use cases including the following: * Creating and importing new music scores using MusicXML or MIDI files * Browsing, updating, copying, exporting the user's scores (for example in MP3, WAV or MIDI) * Managing educational resources with Flat for Education: creating & updating the organization accounts, the classes, rosters and assignments. The Flat API is built on HTTP. Our API is RESTful It has predictable resource URLs. It returns HTTP response codes to indicate errors. It also accepts and returns JSON in the HTTP body. The [schema](/swagger.yaml) of this API follows the [OpenAPI Initiative (OAI) specification](https://www.openapis.org/), you can use and work with [compatible Swagger tools](http://swagger.io/open-source-integrations/). This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). You can use your favorite HTTP/REST library for your programming language to use Flat's API. This specification and reference is [available on Github](https://github.com/FlatIO/api-reference). Getting Started and learn more: * [API Overview and interoduction](https://flat.io/developers/docs/api/) * [Authentication (Personal Access Tokens or OAuth2)](https://flat.io/developers/docs/api/authentication.html) * [SDKs](https://flat.io/developers/docs/api/sdks.html) * [Rate Limits](https://flat.io/developers/docs/api/rate-limits.html) * [Changelog](https://flat.io/developers/docs/api/changelog.html)
77
8-
OpenAPI spec version: 2.2.0
8+
OpenAPI spec version: 2.4.0
99
Contact: developers@flat.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

0 commit comments

Comments
 (0)