Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 1e508d1

Browse files
[bot]update openapi3 schema
1 parent c44915f commit 1e508d1

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

api/build/core-openapi3.yaml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ tags:
1313
- name: Migration - Registration not required
1414
- name: Services - Registration required
1515
- name: Services - Registration not required
16+
- name: Resource addressing with relative roots - Registration not required
17+
- name: Resource addressing with relative roots - Registration required
1618
paths:
1719
/.p2/core/v1/challenge:
1820
get:
@@ -743,6 +745,73 @@ paths:
743745
type: string
744746
security:
745747
- BearerAuth: []
748+
/.p2/core/v1/resource/{rid}:
749+
get:
750+
operationId: Unregistered_getResource
751+
summary: Get resource by resource ID
752+
description: |-
753+
Retrieve a [RawR](https://docs.polyphony.chat/Protocol%20Specifications/core/#731-resource-addressing-with-relative-roots)
754+
resource by specifying the ID of the resource.
755+
parameters:
756+
- name: rid
757+
in: path
758+
required: true
759+
description: ': Resource Identifier - unique identifier for a resource.'
760+
schema:
761+
type: string
762+
responses:
763+
'200':
764+
description: |-
765+
- `200`: File found and retrieved.
766+
- `401`: Server or resource requires authentication to access this endpoint.
767+
- `403`: Server or resource not accessible for the actor making this request.
768+
- `404`: Resource not found.
769+
content:
770+
application/json:
771+
schema:
772+
$ref: '#/components/schemas/TypeSpec.Http.File'
773+
'401':
774+
description: |-
775+
- `200`: File found and retrieved.
776+
- `401`: Server or resource requires authentication to access this endpoint.
777+
- `403`: Server or resource not accessible for the actor making this request.
778+
- `404`: Resource not found.
779+
'403':
780+
description: |-
781+
- `200`: File found and retrieved.
782+
- `401`: Server or resource requires authentication to access this endpoint.
783+
- `403`: Server or resource not accessible for the actor making this request.
784+
- `404`: Resource not found.
785+
'404':
786+
description: |-
787+
- `200`: File found and retrieved.
788+
- `401`: Server or resource requires authentication to access this endpoint.
789+
- `403`: Server or resource not accessible for the actor making this request.
790+
- `404`: Resource not found.
791+
tags:
792+
- Resource addressing with relative roots - Registration not required
793+
post:
794+
operationId: Registered_postResource
795+
summary: Upload RawR resource
796+
parameters:
797+
- name: rid
798+
in: path
799+
required: true
800+
schema:
801+
type: string
802+
- name: Content-Length
803+
in: header
804+
required: true
805+
schema:
806+
type: integer
807+
format: uint64
808+
responses:
809+
'200':
810+
description: The request has succeeded.
811+
tags:
812+
- Resource addressing with relative roots - Registration required
813+
security:
814+
- BearerAuth: []
746815
/.p2/core/v1/services:
747816
post:
748817
operationId: Registered_registerService
@@ -1191,6 +1260,18 @@ paths:
11911260
- {}
11921261
components:
11931262
schemas:
1263+
TypeSpec.Http.File:
1264+
type: object
1265+
required:
1266+
- contents
1267+
properties:
1268+
contentType:
1269+
type: string
1270+
filename:
1271+
type: string
1272+
contents:
1273+
type: string
1274+
format: byte
11941275
Version:
11951276
type: string
11961277
enum:

0 commit comments

Comments
 (0)