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.
Hi Mansi,
Since no one has replied yet, you should open a support ticket with Atlassian. Please post back here with the solution/answer for future readers.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.