An online REST API for prototyping.
Make a GET, POST, PUT, PATCH, or DELETE request to a moxie API endpoint.
Below is an example JS request made with
window.fetch. Check out the sample response.
fetch('https://usemoxie.xyz/api/@itsjonq/samples/1') .then(response => response.json()) .then(data => console.log(data));
The format of the API endpoint:
|:username||Yes||Your "username". Must start with a |
|:collection||Yes||The name of your collection of data.|
|:id||The id of an single item.|
Check out the official React hooks library to get started with Moxie + React.
To keep things simple, Moxie does not require authentication.
Since we don't require logins, a "username" is just a convention to establish your personal playground.
We don't monitor or curate data. Please don't store anything sensitive or important. There's no guarantees that your data will be preserved.
After all, Moxie just for prototyping!
P.S. Please be nice and don't override other people's stuff 🙏
Here are some endpoints you can hit:
Collections are a list (Array) of data (entries). When making a
POST request, if a collection doesn't exist, Moxie will make one for you!
|GET||Gets a collection of data.|
|POST||Adds a new entry to the collection.|
Multiple entries can be added with an array.
|PUT||Updates multiple entries.|
|PATCH||Updates multiple entries.|
|DELETE||Deletes entries from the collection.|
If no arguments are passed, this deletes the entire collection.
createdAt fields are automatically generated for you on GET requests.
Entries are individual items within a Collection.
|GET||Gets an entry.|
|POST||Adds a new entry.|
|PUT||Updates an existing entry.|
|PATCH||Updates an existing entry.|
|DELETE||Deletes an entry.|
updatedAt fields are automatically generated for you on PATCH/PUT requests.
And that's Moxie! Have fun building cool things.
© 2020. Made with 🦄 by Q.