mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
API blueprint test
This commit is contained in:
1 parent
daf4850506
commit
c4e3282be8
5 files changed
+102
-6
No files matched your search
@@ -66,7 +66,7 @@ const options: Options = {
|
||||
'GET v1/teams/(id)': true,
|
||||
'POST v1/teams/(id)': true,
|
||||
'DELETE v1/teams/(id)': true,
|
||||
'GET v1/teams': true,
|
||||
'GET v1/teams': false,
|
||||
'POST v1/teams': true,
|
||||
|
||||
'GET v1/employees': true,
|
||||
|
||||
@@ -20,7 +20,7 @@ export default {
|
||||
|
||||
async created() {
|
||||
try {
|
||||
this.teams = await this.$axios.get_auth_data('v1/teams')
|
||||
this.teams = await this.$axios.get_auth_data('http://127.0.0.1:8000/api/v1/teams')
|
||||
} catch (error) {
|
||||
this.teams = {error: error.data.error}
|
||||
this.$toast.error(error.data.error)
|
||||
|
||||
Reference in new issue
Block a user