Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add createDocument(projectID) API function #9

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

aloisklink
Copy link
Contributor

This function creates a new document in the given project. Due to a CSRF issue that forbids us from sending FormData, we have to send an empty JSON object in the body to force Axios not to send FormData.

image

This function creates a new document in the given project.
@aloisklink aloisklink added the enhancement New feature or request label Nov 24, 2023
Copy link

vercel bot commented Nov 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
office-plugin-site ⬜️ Ignored (Inspect) Nov 24, 2023 3:26pm

Copy link
Member

@sidharthv96 sidharthv96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should figure out a better way than hard-coding ids in tests soon.

@aloisklink
Copy link
Contributor Author

We should figure out a better way than hard-coding ids in tests soon.

I'd imagine that once we've added a createTeam() and createProject() API routes, we could use them to automatically create a project to upload all our test diagrams to.

@aloisklink aloisklink merged commit 4fcb079 into main Dec 4, 2023
4 checks passed
@aloisklink aloisklink deleted the feat/add-createDocument-to-sdk branch December 4, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants