2915 rest api documentation (#3020)

* Init rest-api page

* Add ugly form to fetch open api schema

* Clean code

* Make the form design more acceptable

* Update doc

* Use local storage

* Update design

* Add isLoading

* Fix typo

* Fix long lines

* Code review returns

* Remove staging and local url from servers
This commit is contained in:
martmull
2023-12-15 18:13:13 +01:00
committed by GitHub
parent 9f6d476351
commit 3ac4102c3c
10 changed files with 2474 additions and 81 deletions

View File

@ -20,22 +20,10 @@ export const baseSchema = (frontBaseUrl: string): OpenAPIV3.Document => {
},
// Testing purposes
servers: [
{
url: 'http://localhost:3000',
description: 'Local Development',
},
{
url: 'https://api-main.twenty.com/',
description: 'Staging Development',
},
{
url: 'https://api.twenty.com/',
description: 'Production Development',
},
{
url: '/',
description: 'Current Host',
},
],
components: {
securitySchemes: {