Browse Source

specs,nextcloud: Fix index.php URLs

pull/111/head
jld3103 2 years ago
parent
commit
2807079789
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 60
      packages/nextcloud/lib/src/nextcloud.openapi.dart
  2. 46
      packages/nextcloud/lib/src/nextcloud.openapi.json
  3. 10
      specs/core.json
  4. 30
      specs/news.json
  5. 6
      specs/notes.json

60
packages/nextcloud/lib/src/nextcloud.openapi.dart

@ -1542,7 +1542,7 @@ class CoreClient {
}
Future<CoreLoginFlowInit> initLoginFlow() async {
var path = '/login/v2';
var path = '/index.php/login/v2';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1559,7 +1559,7 @@ class CoreClient {
}
Future<CoreLoginFlowResult> getLoginFlowResult({required String token}) async {
var path = '/login/v2/poll';
var path = '/index.php/login/v2/poll';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1584,7 +1584,7 @@ class CoreClient {
int forceIcon = 1,
String mode = 'fill',
}) async {
var path = '/core/preview.png';
var path = '/index.php/core/preview.png';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1610,7 +1610,7 @@ class CoreClient {
required String userId,
required int size,
}) async {
var path = '/avatar/{userId}/{size}/dark';
var path = '/index.php/avatar/{userId}/{size}/dark';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1632,7 +1632,7 @@ class CoreClient {
required String userId,
required int size,
}) async {
var path = '/avatar/{userId}/{size}';
var path = '/index.php/avatar/{userId}/{size}';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1865,7 +1865,7 @@ class NewsClient {
final Client rootClient;
Future<GetSupportedApiVersions> getSupportedApiVersions() async {
var path = '/apps/news/api';
var path = '/index.php/apps/news/api';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1882,7 +1882,7 @@ class NewsClient {
}
Future<NewsListFolders> listFolders() async {
var path = '/apps/news/api/v1-3/folders';
var path = '/index.php/apps/news/api/v1-3/folders';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1899,7 +1899,7 @@ class NewsClient {
}
Future<NewsListFolders> createFolder({required String name}) async {
var path = '/apps/news/api/v1-3/folders';
var path = '/index.php/apps/news/api/v1-3/folders';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1920,7 +1920,7 @@ class NewsClient {
required int folderId,
required String name,
}) async {
var path = '/apps/news/api/v1-3/folders/{folderId}';
var path = '/index.php/apps/news/api/v1-3/folders/{folderId}';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1939,7 +1939,7 @@ class NewsClient {
}
Future deleteFolder({required int folderId}) async {
var path = '/apps/news/api/v1-3/folders/{folderId}';
var path = '/index.php/apps/news/api/v1-3/folders/{folderId}';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1960,7 +1960,7 @@ class NewsClient {
required int folderId,
required int newestItemId,
}) async {
var path = '/apps/news/api/v1-3/folders/{folderId}/read';
var path = '/index.php/apps/news/api/v1-3/folders/{folderId}/read';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1979,7 +1979,7 @@ class NewsClient {
}
Future<NewsListFeeds> listFeeds() async {
var path = '/apps/news/api/v1-3/feeds';
var path = '/index.php/apps/news/api/v1-3/feeds';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -1999,7 +1999,7 @@ class NewsClient {
required String url,
int? folderId,
}) async {
var path = '/apps/news/api/v1-3/feeds';
var path = '/index.php/apps/news/api/v1-3/feeds';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2020,7 +2020,7 @@ class NewsClient {
}
Future deleteFeed({required int feedId}) async {
var path = '/apps/news/api/v1-3/feeds/{feedId}';
var path = '/index.php/apps/news/api/v1-3/feeds/{feedId}';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2041,7 +2041,7 @@ class NewsClient {
required int feedId,
int? folderId,
}) async {
var path = '/apps/news/api/v1-3/feeds/{feedId}/move';
var path = '/index.php/apps/news/api/v1-3/feeds/{feedId}/move';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2065,7 +2065,7 @@ class NewsClient {
required int feedId,
required String feedTitle,
}) async {
var path = '/apps/news/api/v1-3/feeds/{feedId}/rename';
var path = '/index.php/apps/news/api/v1-3/feeds/{feedId}/rename';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2087,7 +2087,7 @@ class NewsClient {
required int feedId,
required int newestItemId,
}) async {
var path = '/apps/news/api/v1-3/feeds/{feedId}/read';
var path = '/index.php/apps/news/api/v1-3/feeds/{feedId}/read';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2113,7 +2113,7 @@ class NewsClient {
int offset = 0,
int oldestFirst = 0,
}) async {
var path = '/apps/news/api/v1-3/items';
var path = '/index.php/apps/news/api/v1-3/items';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2140,7 +2140,7 @@ class NewsClient {
int id = 0,
int lastModified = 0,
}) async {
var path = '/apps/news/api/v1-3/items/updated';
var path = '/index.php/apps/news/api/v1-3/items/updated';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2160,7 +2160,7 @@ class NewsClient {
}
Future markArticleAsRead({required int itemId}) async {
var path = '/apps/news/api/v1-3/items/{itemId}/read';
var path = '/index.php/apps/news/api/v1-3/items/{itemId}/read';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2178,7 +2178,7 @@ class NewsClient {
}
Future markArticleAsUnread({required int itemId}) async {
var path = '/apps/news/api/v1-3/items/{itemId}/unread';
var path = '/index.php/apps/news/api/v1-3/items/{itemId}/unread';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2196,7 +2196,7 @@ class NewsClient {
}
Future starArticle({required int itemId}) async {
var path = '/apps/news/api/v1-3/items/{itemId}/star';
var path = '/index.php/apps/news/api/v1-3/items/{itemId}/star';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2214,7 +2214,7 @@ class NewsClient {
}
Future unstarArticle({required int itemId}) async {
var path = '/apps/news/api/v1-3/items/{itemId}/unstar';
var path = '/index.php/apps/news/api/v1-3/items/{itemId}/unstar';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2328,7 +2328,7 @@ class NotesClient {
String? chunkCursor,
String? ifNoneMatch,
}) async {
var path = '/apps/notes/api/v1/notes';
var path = '/index.php/apps/notes/api/v1/notes';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2365,7 +2365,7 @@ class NotesClient {
int modified = 0,
int favorite = 0,
}) async {
var path = '/apps/notes/api/v1/notes';
var path = '/index.php/apps/notes/api/v1/notes';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2391,7 +2391,7 @@ class NotesClient {
String exclude = '',
String? ifNoneMatch,
}) async {
var path = '/apps/notes/api/v1/notes/{id}';
var path = '/index.php/apps/notes/api/v1/notes/{id}';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2421,7 +2421,7 @@ class NotesClient {
int favorite = 0,
String? ifMatch,
}) async {
var path = '/apps/notes/api/v1/notes/{id}';
var path = '/index.php/apps/notes/api/v1/notes/{id}';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2455,7 +2455,7 @@ class NotesClient {
}
Future<String> deleteNote({required int id}) async {
var path = '/apps/notes/api/v1/notes/{id}';
var path = '/index.php/apps/notes/api/v1/notes/{id}';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2473,7 +2473,7 @@ class NotesClient {
}
Future<NotesSettings> getSettings() async {
var path = '/apps/notes/api/v1/settings';
var path = '/index.php/apps/notes/api/v1/settings';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;
@ -2490,7 +2490,7 @@ class NotesClient {
}
Future<NotesSettings> updateSettings({required NotesSettings notesSettings}) async {
var path = '/apps/notes/api/v1/settings';
var path = '/index.php/apps/notes/api/v1/settings';
final queryParameters = <String, dynamic>{};
final headers = <String, String>{};
Uint8List? body;

46
packages/nextcloud/lib/src/nextcloud.openapi.json

@ -2183,7 +2183,7 @@
}
}
},
"/login/v2": {
"/index.php/login/v2": {
"post": {
"operationId": "init-login-flow",
"tags": [
@ -2203,7 +2203,7 @@
}
}
},
"/login/v2/poll": {
"/index.php/login/v2/poll": {
"post": {
"operationId": "get-login-flow-result",
"tags": [
@ -2233,7 +2233,7 @@
}
}
},
"/core/preview.png": {
"/index.php/core/preview.png": {
"parameters": [
{
"name": "file",
@ -2310,7 +2310,7 @@
}
}
},
"/avatar/{userId}/{size}/dark": {
"/index.php/avatar/{userId}/{size}/dark": {
"parameters": [
{
"name": "userId",
@ -2349,7 +2349,7 @@
}
}
},
"/avatar/{userId}/{size}": {
"/index.php/avatar/{userId}/{size}": {
"parameters": [
{
"name": "userId",
@ -2388,7 +2388,7 @@
}
}
},
"/apps/news/api": {
"/index.php/apps/news/api": {
"get": {
"operationId": "get-supported-api-versions",
"tags": [
@ -2416,7 +2416,7 @@
}
}
},
"/apps/news/api/v1-3/folders": {
"/index.php/apps/news/api/v1-3/folders": {
"get": {
"operationId": "list-folders",
"tags": [
@ -2464,7 +2464,7 @@
}
}
},
"/apps/news/api/v1-3/folders/{folderId}": {
"/index.php/apps/news/api/v1-3/folders/{folderId}": {
"parameters": [
{
"name": "folderId",
@ -2508,7 +2508,7 @@
}
}
},
"/apps/news/api/v1-3/folders/{folderId}/read": {
"/index.php/apps/news/api/v1-3/folders/{folderId}/read": {
"parameters": [
{
"name": "folderId",
@ -2543,7 +2543,7 @@
}
}
},
"/apps/news/api/v1-3/feeds": {
"/index.php/apps/news/api/v1-3/feeds": {
"get": {
"operationId": "list-feeds",
"tags": [
@ -2599,7 +2599,7 @@
}
}
},
"/apps/news/api/v1-3/feeds/{feedId}": {
"/index.php/apps/news/api/v1-3/feeds/{feedId}": {
"parameters": [
{
"name": "feedId",
@ -2622,7 +2622,7 @@
}
}
},
"/apps/news/api/v1-3/feeds/{feedId}/move": {
"/index.php/apps/news/api/v1-3/feeds/{feedId}/move": {
"parameters": [
{
"name": "feedId",
@ -2655,7 +2655,7 @@
}
}
},
"/apps/news/api/v1-3/feeds/{feedId}/rename": {
"/index.php/apps/news/api/v1-3/feeds/{feedId}/rename": {
"parameters": [
{
"name": "feedId",
@ -2688,7 +2688,7 @@
}
}
},
"/apps/news/api/v1-3/feeds/{feedId}/read": {
"/index.php/apps/news/api/v1-3/feeds/{feedId}/read": {
"parameters": [
{
"name": "feedId",
@ -2721,7 +2721,7 @@
}
}
},
"/apps/news/api/v1-3/items": {
"/index.php/apps/news/api/v1-3/items": {
"get": {
"operationId": "list-articles",
"tags": [
@ -2797,7 +2797,7 @@
}
}
},
"/apps/news/api/v1-3/items/updated": {
"/index.php/apps/news/api/v1-3/items/updated": {
"get": {
"operationId": "list-updated-articles",
"tags": [
@ -2846,7 +2846,7 @@
}
}
},
"/apps/news/api/v1-3/items/{itemId}/read": {
"/index.php/apps/news/api/v1-3/items/{itemId}/read": {
"parameters": [
{
"name": "itemId",
@ -2869,7 +2869,7 @@
}
}
},
"/apps/news/api/v1-3/items/{itemId}/unread": {
"/index.php/apps/news/api/v1-3/items/{itemId}/unread": {
"parameters": [
{
"name": "itemId",
@ -2892,7 +2892,7 @@
}
}
},
"/apps/news/api/v1-3/items/{itemId}/star": {
"/index.php/apps/news/api/v1-3/items/{itemId}/star": {
"parameters": [
{
"name": "itemId",
@ -2915,7 +2915,7 @@
}
}
},
"/apps/news/api/v1-3/items/{itemId}/unstar": {
"/index.php/apps/news/api/v1-3/items/{itemId}/unstar": {
"parameters": [
{
"name": "itemId",
@ -2938,7 +2938,7 @@
}
}
},
"/apps/notes/api/v1/notes": {
"/index.php/apps/notes/api/v1/notes": {
"get": {
"operationId": "get-notes",
"tags": [
@ -3078,7 +3078,7 @@
}
}
},
"/apps/notes/api/v1/notes/{id}": {
"/index.php/apps/notes/api/v1/notes/{id}": {
"parameters": [
{
"name": "id",
@ -3212,7 +3212,7 @@
}
}
},
"/apps/notes/api/v1/settings": {
"/index.php/apps/notes/api/v1/settings": {
"get": {
"operationId": "get-settings",
"tags": [

10
specs/core.json

@ -1133,7 +1133,7 @@
}
}
},
"/login/v2": {
"/index.php/login/v2": {
"post": {
"operationId": "init-login-flow",
"tags": [
@ -1153,7 +1153,7 @@
}
}
},
"/login/v2/poll": {
"/index.php/login/v2/poll": {
"post": {
"operationId": "get-login-flow-result",
"tags": [
@ -1183,7 +1183,7 @@
}
}
},
"/core/preview.png": {
"/index.php/core/preview.png": {
"parameters": [
{
"name": "file",
@ -1260,7 +1260,7 @@
}
}
},
"/avatar/{userId}/{size}/dark": {
"/index.php/avatar/{userId}/{size}/dark": {
"parameters": [
{
"name": "userId",
@ -1299,7 +1299,7 @@
}
}
},
"/avatar/{userId}/{size}": {
"/index.php/avatar/{userId}/{size}": {
"parameters": [
{
"name": "userId",

30
specs/news.json

@ -284,7 +284,7 @@
}
},
"paths": {
"/apps/news/api": {
"/index.php/apps/news/api": {
"get": {
"operationId": "get-supported-api-versions",
"tags": [
@ -312,7 +312,7 @@
}
}
},
"/apps/news/api/v1-3/folders": {
"/index.php/apps/news/api/v1-3/folders": {
"get": {
"operationId": "list-folders",
"tags": [
@ -360,7 +360,7 @@
}
}
},
"/apps/news/api/v1-3/folders/{folderId}": {
"/index.php/apps/news/api/v1-3/folders/{folderId}": {
"parameters": [
{
"name": "folderId",
@ -404,7 +404,7 @@
}
}
},
"/apps/news/api/v1-3/folders/{folderId}/read": {
"/index.php/apps/news/api/v1-3/folders/{folderId}/read": {
"parameters": [
{
"name": "folderId",
@ -439,7 +439,7 @@
}
}
},
"/apps/news/api/v1-3/feeds": {
"/index.php/apps/news/api/v1-3/feeds": {
"get": {
"operationId": "list-feeds",
"tags": [
@ -495,7 +495,7 @@
}
}
},
"/apps/news/api/v1-3/feeds/{feedId}": {
"/index.php/apps/news/api/v1-3/feeds/{feedId}": {
"parameters": [
{
"name": "feedId",
@ -518,7 +518,7 @@
}
}
},
"/apps/news/api/v1-3/feeds/{feedId}/move": {
"/index.php/apps/news/api/v1-3/feeds/{feedId}/move": {
"parameters": [
{
"name": "feedId",
@ -551,7 +551,7 @@
}
}
},
"/apps/news/api/v1-3/feeds/{feedId}/rename": {
"/index.php/apps/news/api/v1-3/feeds/{feedId}/rename": {
"parameters": [
{
"name": "feedId",
@ -584,7 +584,7 @@
}
}
},
"/apps/news/api/v1-3/feeds/{feedId}/read": {
"/index.php/apps/news/api/v1-3/feeds/{feedId}/read": {
"parameters": [
{
"name": "feedId",
@ -617,7 +617,7 @@
}
}
},
"/apps/news/api/v1-3/items": {
"/index.php/apps/news/api/v1-3/items": {
"get": {
"operationId": "list-articles",
"tags": [
@ -693,7 +693,7 @@
}
}
},
"/apps/news/api/v1-3/items/updated": {
"/index.php/apps/news/api/v1-3/items/updated": {
"get": {
"operationId": "list-updated-articles",
"tags": [
@ -742,7 +742,7 @@
}
}
},
"/apps/news/api/v1-3/items/{itemId}/read": {
"/index.php/apps/news/api/v1-3/items/{itemId}/read": {
"parameters": [
{
"name": "itemId",
@ -765,7 +765,7 @@
}
}
},
"/apps/news/api/v1-3/items/{itemId}/unread": {
"/index.php/apps/news/api/v1-3/items/{itemId}/unread": {
"parameters": [
{
"name": "itemId",
@ -788,7 +788,7 @@
}
}
},
"/apps/news/api/v1-3/items/{itemId}/star": {
"/index.php/apps/news/api/v1-3/items/{itemId}/star": {
"parameters": [
{
"name": "itemId",
@ -811,7 +811,7 @@
}
}
},
"/apps/news/api/v1-3/items/{itemId}/unstar": {
"/index.php/apps/news/api/v1-3/items/{itemId}/unstar": {
"parameters": [
{
"name": "itemId",

6
specs/notes.json

@ -139,7 +139,7 @@
}
},
"paths": {
"/apps/notes/api/v1/notes": {
"/index.php/apps/notes/api/v1/notes": {
"get": {
"operationId": "get-notes",
"tags": [
@ -279,7 +279,7 @@
}
}
},
"/apps/notes/api/v1/notes/{id}": {
"/index.php/apps/notes/api/v1/notes/{id}": {
"parameters": [
{
"name": "id",
@ -413,7 +413,7 @@
}
}
},
"/apps/notes/api/v1/settings": {
"/index.php/apps/notes/api/v1/settings": {
"get": {
"operationId": "get-settings",
"tags": [

Loading…
Cancel
Save