S-CASE Asset Registry REST API
Description of S-CASE Asset Registry REST API
Version: 1.0.8
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html
Access
[ Jump to Models ]
Table of Contents
post /artefact
delete /artefact/{id}
get /artefact/exists/{id}
get /artefact/{id}
get /artefact/directsearch
get /artefact/search
put /artefact/{id}
get /domain/{id}
get /domain/domains
post /project
delete /project/{id}
delete /project/{name}
get /project/{id}
get /project/{name}
get /project/directsearch
get /project/search
put /project/{id}
get /subdomain/{id}
get /subdomain/subdomains
get /version
Creates and stores a new artefact in the repository (create)
Consumes
This API call consumes the following media types via the
Content-Type request header:
Request body
body (optional)
Body Parameter — Artefact to be stored in the Asset Repo
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
application/json;charset=UTF-8
Responses
204
No content (artefact has been created successfully)
400
Request incorrect
404
Not found
500
Internal Server error
Deletes an artefact from the repository (delete)
Path parameters
id (required)
Path Parameter — Artefact ID of the artefact that shall be deleted from the Asset Repo
Consumes
This API call consumes the following media types via the
Content-Type request header:
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
application/json;charset=UTF-8
Responses
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Up
get /artefact/exists/{id}
Checks if an artefact does exist in the repository (exists)
Path parameters
id (required)
Path Parameter — Artefact ID
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Boolean
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server errorm
Finds an artefact in the repository by ID (get)
Path parameters
id (required)
Path Parameter — Artefact ID
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Up
get /artefact/directsearch
Finds a list of artefacts by search query. <BR>The search query has to be submitted in the Elastic Search JSON search syntax. (searchArtefacts)
Consumes
This API call consumes the following media types via the
Content-Type request header:
Query parameters
q (optional)
Query Parameter — Search query in the Elastic Search JSON syntax
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Finds a list of artefacts by free text search strings. <BR>All query parameters are optional and can be combined as needed but at least one parameter has to be submitted. (searchArtefacts_1)
Consumes
This API call consumes the following media types via the
Content-Type request header:
Query parameters
query (optional)
Query Parameter — Free text string that should be used to search inside of an artefact
domain (optional)
Query Parameter — Domain name string an artefact should be assigned to
subdomain (optional)
Query Parameter — Subdomain name string an artefact should be assigned to
type (optional)
Query Parameter — The Artefact Type of an artefact (e.g. USE_CASE)
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Updates an artefact in the repository (update)
Path parameters
id (required)
Path Parameter — artefact id
Consumes
This API call consumes the following media types via the
Content-Type request header:
Request body
body (optional)
Body Parameter — The artefact to be updated
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
application/json;charset=UTF-8
Responses
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Finds a domain by ID in the repository (find)
Path parameters
id (required)
Path Parameter — domain id
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Retrieves a list of all domains in the repository (findAll)
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Creates and stores a new project in the repository (create)
Consumes
This API call consumes the following media types via the
Content-Type request header:
Request body
body (optional)
Body Parameter — The project to be stored inside of the Asset Repo
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
application/json;charset=UTF-8
Responses
204
No content (project has been created successfully)
400
Request incorrect
404
Not found
500
Internal Server error
Deletes a project from the Asset Repo by ID (delete)
Path parameters
id (required)
Path Parameter — ID of the project to be deleted
Consumes
This API call consumes the following media types via the
Content-Type request header:
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
application/json;charset=UTF-8
Responses
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Up
delete /project/{name}
Deletes a project from the Asset Repo by name (delete_1)
Path parameters
name (required)
Path Parameter — name of the project to be deleted
Consumes
This API call consumes the following media types via the
Content-Type request header:
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
application/json;charset=UTF-8
Responses
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Finds a project in the repository by ID (get)
Path parameters
id (required)
Path Parameter — project ID
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
application/json;charset=UTF-8
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Finds a project in the repository by its name (get_2)
Path parameters
name (required)
Path Parameter — the name of the project
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
application/json;charset=UTF-8
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Up
get /project/directsearch
Finds a list of projects in the repository by search query. <BR>The search query has to be submitted in the Elastic Search JSON search syntax. (searchProjects)
Consumes
This API call consumes the following media types via the
Content-Type request header:
Query parameters
q (optional)
Query Parameter — Search query in the Elastic Search JSON syntax
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Finds a list of projects by free text search strings. <BR> All query parameters are optional and can be combined as needed but at least one parameter has to be submitted. (searchProjects_3)
Consumes
This API call consumes the following media types via the
Content-Type request header:
Query parameters
query (optional)
Query Parameter — Free text string that should be used to search inside of a project
domain (optional)
Query Parameter — Domain name string a project should be assigned to
subdomain (optional)
Query Parameter — Subdomain name string a project should be assigned to
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Updates a project in the Asset Repo (update)
Path parameters
id (required)
Path Parameter — Project ID
Consumes
This API call consumes the following media types via the
Content-Type request header:
Request body
body (optional)
Body Parameter — The project to be updated inside of the Asset Repo
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
application/json;charset=UTF-8
Responses
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Finds a subdomain by ID in the Asset Repository (find)
Path parameters
id (required)
Path Parameter — subdomain ID
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Up
get /subdomain/subdomains
Retrieves a list of all subdomains in the Asset Repository (findAll)
Consumes
This API call consumes the following media types via the
Content-Type request header:
Return type
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the
Content-Type response header.
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
Returns the version number (version)
Return type
String
Responses
200
successful operation
204
No content
400
Request incorrect
404
Not found
500
Internal Server error
[ Jump to Methods ]
Table of Contents
ArtefactDTO
Domain
JsonArtefact
JsonArtefactPayload
JsonProject
ProjectDTO
SubDomain
artefact
JsonArtefact
score
Float
id
Long
version
Long
name
String
subdomains
array[SubDomain]
id
Long
createdBy
String
updatedBy
String
createdAt
Date
updatedAt
Date
domain
String
subDomain
String
privacyLevel
String
PUBLIC
PRIVATE
version
Long
projectName
String
uri
String
groupId
String
name
String
dependencies
array[Long]
type
String
USE_CASE
ACTIVITY_DIAGRAM
ANALYSIS_CLASS_DIAGRAM
STORYBOARD
TEXTUAL
STATIC_ONTOLOGY
DYNAMIC_ONTOLOGY
AGGREGATED_ONTOLOGY
CODE_SNIPPET
NOTE
CIM
PIM
PSM
CODE
SERVICE_DESCRIPTION
COMPOSITE_SERVICE_DESCRIPTION
SERVICE
OSRF_PROJECT
OSRF_FILE
description
String
tags
array[String]
metadata
map[String, String]
payload
array[JsonArtefactPayload]
id
Long
version
Long
type
String
BINARY
TEXTUAL
format
String
IMAGE
XMI
TEXT_ISO_639_3
TEXT_UTF8
OWL
N3
RDF
JAVA_CODE
JAVA_CODE_PACKED
JSON
WADL
XML
name
String
payload
array[byte[]]
id
Long
createdBy
String
updatedBy
String
createdAt
Date
updatedAt
Date
domain
String
subDomain
String
privacyLevel
String
PUBLIC
PRIVATE
version
Long
name
String
artefacts
array[JsonArtefact]
project
JsonProject
score
Float
id
Long
version
Long
name
String
domain
Domain