Skip to main content
DevForge Academy
Tutorials
References
Exercises
Quizzes
More
Search
⌘K
Headmaster's Portfolio
Online Compiler
Html
Css
Javascript
Typescript
Python
Java
C
Cpp
Csharp
Php
Sql
Go
Kotlin
Rust
Bash
Swift
R
Mongodb
Redis
Postgresql
Cassandra
Dynamodb
Couchdb
Couchbase
Ferretdb
Examples
Reset
Run Code
# CouchDB HTTP API (REST) # Run locally: # docker run -p 5984:5984 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password couchdb # Create a database curl -X PUT http://admin:password@localhost:5984/mydb # Insert a document curl -X POST http://admin:password@localhost:5984/mydb \ -H "Content-Type: application/json" \ -d '{"name": "Alice", "age": 30, "role": "admin"}' # Get all documents curl http://admin:password@localhost:5984/mydb/_all_docs?include_docs=true
Output
Click "Run Code" to see output...