Peace of mind from prototype to production
-
Updated
Dec 17, 2020 - Elixir
An API can be thought of as an instruction manual for communication between multiple software apparatuses. For example, an API may be used for database communication between web applications. By extracting the implementation and relinquishing data into objects, an API simplifies programming.
GET request of schema inputs throw error.
Workaround is to use POST or write middleware (example below)
16.0.5
7.4.0
OSX
./node_modules/.bin/actionhero generate
./node_modules/.bin/actionhero generate action --name="schemaTest"
If you PATCHed to /posts/1
, but send payload with a different id:
{
data: {
id: 789,
type: 'posts',
attributes: { ... }
}
}
We pay attention to the payload and not the URL - instead let's throw an error when there is a mismatch.
Hello Maurits,
This is more of a request than it is an actual issue, but I think the value in this request is really high (for newcomers, especially - but not limited to).
Could you please add a COMPLETE application example of using the API (with user authentication, maybe even with the user-creation SQL script, table authorization, etc).
This would be really really helpful as a quickstart /