POST api/fileo/fichier
Crée un fichier.
Request Information
URI Parameters
None.
Body Parameters
ApiIncomingFichier| Name | Description | Type | Additional information |
|---|---|---|---|
| IdFichier | integer |
None. |
|
| Nom | string |
None. |
|
| IdDossierProduction | integer |
None. |
|
| IdDossierParent | integer |
None. |
|
| Fichier | HttpFile |
None. |
|
| ProprietesModifiees | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdFichier": 1,
"Nom": "sample string 1",
"IdDossierProduction": 1,
"IdDossierParent": 1,
"Fichier": {
"FileName": "sample string 1",
"MediaType": "sample string 2",
"Buffer": "QEA="
},
"ProprietesModifiees": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<ApiIncomingFichier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoCommunServeur.Business.Api.Incoming">
<ProprietesModifiees xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ProprietesModifiees>
<Fichier xmlns:d2p1="http://schemas.datacontract.org/2004/07/MultipartDataMediaFormatter.Infrastructure">
<d2p1:Buffer>QEA=</d2p1:Buffer>
<d2p1:FileName>sample string 1</d2p1:FileName>
<d2p1:MediaType>sample string 2</d2p1:MediaType>
</Fichier>
<IdDossierParent>1</IdDossierParent>
<IdDossierProduction>1</IdDossierProduction>
<IdFichier>1</IdFichier>
<Nom>sample string 1</Nom>
</ApiIncomingFichier>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdFichier" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Nom" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdDossierProduction" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdDossierParent" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Fichier"; filename="sample string 1" Content-Type: sample string 2 @@ --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ProprietesModifiees[0]" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ProprietesModifiees[1]" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
Retourne un ApiFichier.
ApiFichier| Name | Description | Type | Additional information |
|---|---|---|---|
| Taille |
Taille du fichier |
integer |
None. |
| Empreinte |
MD5 du fichier |
string |
None. |
| IdDossierParent |
Identifiant unique du dossier |
integer |
None. |
| IdDossierProduction |
Identifiant unique de l'élément de production |
integer |
None. |
| IdElement |
Identifiant unique de l'élément |
integer |
None. |
| Nom |
Nom de l'élément |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Taille": 1,
"Empreinte": "sample string 2",
"IdDossierParent": 1,
"IdDossierProduction": 1,
"IdElement": 3,
"Nom": "sample string 4"
}
application/xml, text/xml
Sample:
<ApiFichier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoWeb.Models.Api"> <IdElement>3</IdElement> <Nom>sample string 4</Nom> <IdDossierParent>1</IdDossierParent> <IdDossierProduction>1</IdDossierProduction> <Empreinte>sample string 2</Empreinte> <Taille>1</Taille> </ApiFichier>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Taille" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Empreinte" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdDossierParent" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdDossierProduction" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdElement" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Nom" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e--