Oauth version of rest apis

Mansi Gusain March 4, 2025

Hi, I am using these apis- 

/wiki/api/v2/spaces 

and 

/wiki/api/v2/pages

 

Now these are basic auth based. I want to use the oauth to authorize these apis what is the format for that? I am using the oauth for authorization but these apis are not working. 

Please help. 

 

 

 

 

 

this is my schema but it is wrong and not working - 

 

openapi: 3.1.0 info: title: msid API version: 1.0.0 servers: - url: https://sample.atlassian.net paths: /wiki/api/v2/spaces: get: summary: Retrieve space information parameters: - in: query name: keys required: true schema: type: string description: The keys of the space to retrieve responses: '200': description: Success content: application/json: schema: type: object properties: id: type: string security: - bearerAuth: [] /wiki/api/v2/pages: post: summary: Create a new page requestBody: content: application/json: schema: type: object properties: spaceId: type: string status: type: string title: type: string parentId: type: string body: type: object properties: representation: type: string example: storage value: type: string required: - spaceId - status - title - body responses: '200': description: Page created successfully security: - bearerAuth: [] components: securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT schemas: ResourceArray: type: array items: $ref: '#/components/schemas/Resource' Resource: type: object required: - id - name - type properties: id: type: string description: The unique identifier for the resource. name: type: string description: The name of the resource. type: type: string description: The type of the resource. SearchResults: type: object properties: results: type: array items: $ref: '#/components/schemas/SearchResult' SearchResult: type: object properties: id: type: string description: The unique identifier of the content. title: type: string description: The title of the content. type: type: string description: The type of the content (e.g., page, blog post). space: type: object properties: id: type: string description: The space ID where the content is located. name: type: string description: The name of the space.

image.png

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events